* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Previous styles remain unchanged, adding styles for History */
.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th, .history-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.history-table th {
    background: #2980b9;
    color: white;
}


/* Previous styles remain unchanged, adding specific styles for Bulk PO */
.size-row {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.size-row input {
    flex: 1;
}

.po-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    padding: 20px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 30px;
}

.form-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.form-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    font-size: 1.1em;
}

.po-header {
    grid-column: 1 / -1;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 2px;
}

.form-group {
    margin-bottom: 10px;
	font-size:1.0em;
	
}

/* Revised PO Checkbox Styles */
.revised-po-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.revised-po-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.revised-po-group label {
    margin: 0;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9em;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9em;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.2);
}

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

/* Size Inputs */
.size-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7em;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f39c12;
    color: #ffffff;
}

.btn-primary {
    background: var(--button-primary);
}

.btn-primary:hover {
    background: var(--button-hover);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--button-success);
}

.btn-success:hover {
    background: #219a52;
    transform: translateY(-1px);
}

.btn-info {
    background: #0ea14c;
}

.btn-info:hover {
    background: #0c8f3f;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f39c12;
}

.btn-secondary:hover {
    background: #d68910;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--button-danger);
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.btn-warning {
    background: var(--button-warning);
}

/* Form Actions */
.form-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
}

/* Bulk PO Container */
.bulk-po-container {
    margin-bottom: 30px;
}

.bulk-po-container .po-section {
    position: relative;
    background: #ffffff;
    border: 1px solid #e9ecef;
}

.remove-po {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .po-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .po-section {
        grid-template-columns: 1fr;
    }
    
    .size-inputs {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Card Styles */
.card {
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 30px;
}

.card h2 {
    color: var(--text-color);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    font-size: 1.5em;
}

/* Select Styles */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
    padding-right: 40px;
}

/* Input Focus States */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.2);
}

/* Disabled State */
input:disabled,
select:disabled,
textarea:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

/* Required Field Indicator */
.form-group label::after {
    content: " *";
    color: #e74c3c;
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Previous styles remain unchanged, adding styles for Printing Houses */
.import-section {
    margin-bottom: 20px;
}

.search-section {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

.search-section input {
    padding: 8px;
    width: 200px;
}

/* Previous styles remain unchanged, adding styles for View All PO */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
	font-size:.9em;
}

table th, table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

table th {
    background: #2c3e50;
    color: white;
}

/* Status row colors - with higher specificity */
table tr.active-row,
table tr.active-row td {
    background-color: #5fbd71 !important;
    color: black !important;
}

table tr.active-row:hover,
table tr.active-row:hover td {
    background-color: #3cb954 !important;
    color: black !important;
}

table tr.cancelled-row,
table tr.cancelled-row td {
    background-color: #f17083 !important;
    color: black !important;
}

table tr.cancelled-row:hover,
table tr.cancelled-row:hover td {
    background-color: #de4f64 !important;
    color: black !important;
}

/* Remove the even row background for active and cancelled rows */
table tr.active-row:nth-child(even),
table tr.cancelled-row:nth-child(even) {
    background-color: inherit !important;
}

/* Ensure table cells inherit row background */
table td {
    background-color: inherit;
}

/* Override any other table row styles */
table tr {
    background-color: inherit;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    padding: 8px 16px;
    margin: 0 5px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.pagination a:hover {
    background: #2980b9;
}

.action-buttons button {
    margin-right: 5px;
    font-size: .9em;
}

/* Previous styles remain unchanged, adding styles for Printing Houses */
.search-container {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

.search-container input {
    flex: 1;
    padding: 8px;
}

header {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
}

.logo-link:hover {
    opacity: 0.9;
}

.logo-link h1 {
    margin: 0;
    font-size: 1.5em;
}

.header-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.weather-container {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    padding: 0 20px;
    font-size: 1.1em;
    min-width: 150px;
}

.weather-container i {
    font-size: 1.5em;
    min-width: 24px;
    text-align: center;
}

.weather-container span {
    white-space: nowrap;
}

header nav {
    display: flex;
    gap: 15px;
}

header nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

header nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

header nav a i {
    font-size: 1.1em;
}

@media (max-width: 768px) {
    .header-left h1 {
        font-size: 1.2em;
    }

    .header-logo {
        height: 30px;
    }

    .weather-container {
        display: none;
    }

    header nav {
        display: none;
    }

    .hamburger {
        display: block;
    }
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    padding: 10px;
}

.sidebar {
    width: 280px;
    background: var(--secondary-color);
    color: white;
    height: calc(100vh - 70px);
    position: fixed;
    top: 70px;
    left: 0;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 999;
}

.user-profile {
    text-align: center;
    padding: 10px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-profile .profile-pic-container {
    width: 60px;
    height: 60px;
    margin: 0 auto 8px;
}

.user-profile .profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-profile .profile-name {
    font-size: 0.9em;
    font-weight: 500;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
    margin-bottom: 5px;
}

.sidebar a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: all 0.3s;
    white-space: normal;
    word-wrap: break-word;
	font-size: .9em;
}

.sidebar a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    font-size: .9em;
}

.sidebar a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

/* Theme-specific sidebar styles */
.theme-default .sidebar {
    background: #34495e;
}

.theme-dark .sidebar {
    background: #2d2d2d;
}

.theme-ocean .sidebar {
    background: #2874a6;
}

.theme-forest .sidebar {
    background: #27ae60;
}

.theme-sunset .sidebar {
    background: #e67e22;
}

.theme-royal .sidebar {
    background: #5d3a9b;
}

.theme-mint .sidebar {
    background: #1abc9c;
}

.theme-coral .sidebar {
    background: #e67e22;
}

.theme-sky .sidebar {
    background: #2980b9;
}

.theme-lavender .sidebar {
    background: #9b59b6;
}

.theme-sand .sidebar {
    background: #e67e22;
}

.theme-emerald .sidebar {
    background: #2ecc71;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1001;
        width: 100%;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }
}

.main-content {
    margin-left: 300px;
    padding: 90px 20px 20px;
    min-height: 100vh;
    transition: margin-left 0.3s;
    position: relative;
    z-index: 1;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.login-box p.success {
    color: #27ae60;
    text-align: center;
    margin: 10px 0;
    padding: 10px;
    background: #e8f5e9;
    border-radius: 4px;
}

.login-box p.error {
    color: #e74c3c;
    text-align: center;
    margin: 10px 0;
    padding: 10px;
    background: #fef0f0;
    border-radius: 4px;
}

.login-box form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-box input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.login-box button {
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s;
}

.login-box button:hover {
    background: #2980b9;
}

.login-box a {
    text-align: center;
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.login-box a:hover {
    color: #0077c7;
}

footer {
    text-align: center;
    padding: 10px;
    background: var(--primary-color);
    color: white;
    position: fixed;
    bottom: 0;
    width: calc(100% - 280px);
    left: 280px;
    z-index: 998;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1001;
        width: 100%;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    header nav {
        display: none;
    }

    header {
        justify-content: space-between;
    }

    .hamburger {
        display: block;
        font-size: 24px;
        cursor: pointer;
    }

    footer {
        width: 100%;
        left: 0;
    }
}

/* PO Preview Modal Styles */
.po-preview-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.po-preview-modal-content {
    position: relative;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 8in;
    max-height: 90vh;
    overflow-y: auto;
}

.po-preview-close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.po-preview-close:hover {
    color: #000;
}

.po-preview-actions {
    margin-bottom: 20px;
    text-align: right;
}

/* A4 Size Container */
.po-preview-container {
    width: 7.65in; /* A4 width */
    min-height: 11in; /* A4 height */
    margin: 0;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 0.25in;
    box-sizing: border-box;
    position: relative;
}

.revised-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 72pt;
    color: rgb(252, 55, 55);
    opacity: 0.2;
    pointer-events: none;
    z-index: 1;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
    font-size: 50pt;
}

.po-preview-content {
    font-family: 'Arial', sans-serif;
    font-size: 10pt;
    line-height: 1.3;
    color: #333;
}

/* Add styles for dates */
.po-preview-content .po-row span[data-label="Order Date"],
.po-preview-content .po-row span[data-label="Delivery Date & Time"] {
    color: #003ba8;
    font-size: 20pt;
    font-weight: bold;
    display: block;
    margin-top: 5px;
}

.po-preview-content .po-row span[data-label="Order Date"]::before {
    content: "Order Date:\A";
    color: #333;
    font-weight: normal;
    white-space: pre;
}

.po-preview-content .po-row span[data-label="Delivery Date & Time"]::before {
    content: "Delivery Date & Time:\A";
    color: #333;
    font-weight: normal;
    white-space: pre;
}

/* Header Styles */
.po-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.1in;
    padding-bottom: 0.15in;
    border-bottom: 2px solid #3498db;
}

.po-logo {
    width: 1.5in;
    margin-right: 0.25in;
}

.po-logo img {
    width: 100%;
    height: auto;
    max-height: 1in;
}

.po-company-info {
    flex: 1;
}

.po-company-info h2 {
    margin: 0;
    font-size: 14pt;
    color: #2c3e50;
    font-weight: bold;
    letter-spacing: 0.3pt;
}

.po-company-info p {
    margin: 2pt 0;
    font-size: 9pt;
    color: #666;
    line-height: 1.3;
}

/* Details Styles */
.po-details {
    margin-bottom: 0.1in;
}

.po-row {
    display: flex;
    margin-bottom: 0.1in;
    padding: 0.01in 0;
    border-bottom: 1px solid #3498db;
}

.po-col {
    flex: 1;
    padding: 0 0.1in;
}

.po-col.full-width {
    flex: 2;
}

.po-number {
    color: #ff0000;
    font-size: 25pt !important;
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5pt;
}

.po-row p {
    margin: 2pt 0;
    font-size: 10pt;
    line-height: 1.3;
}

.po-row strong {
    color: #2c3e50;
    font-size: 10pt;
    font-weight: 600;
}

/* Sizes List Styles */
.sizes-list {
    background: #f8f9fa;
    padding: 0.1in;
    border-radius: 2pt;
    margin-top: 0.05in;
    border: 1px solid #3498db;
}

.sizes-list p {
    margin: 2pt 0;
    padding: 2pt 0;
    border-bottom: 1px solid #3498db;
    font-size: 10pt;
}

.sizes-list p:last-child {
    border-bottom: none;
}

/* Footer Styles */
.po-footer {
    text-align: center;
    font-size: 8pt;
    color: #666;
    font-style: italic;
    margin-top: 0.2in;
    padding-top: 0.1in;
    border-top: 2px solid #3498db;
}

/* Print Styles */
@media print {
    .po-preview-modal {
        position: static;
        background: none;
    }

    .po-preview-modal-content {
        box-shadow: none;
        padding: 0;
    }

    .po-preview-close,
    .po-preview-actions {
        display: none;
    }

    .po-preview-container {
        box-shadow: none;
        margin: 0;
        padding: 0.5in;
        page-break-after: always;
    }

    @page {
        size: A4;
        margin: 0;
    }
}

/* Action Buttons */
.action-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    background: #0c8f3f;
    color: #fff;
    transition: all 0.3s ease;
    margin-right: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
}

.action-btn:hover {
    transform: translateY(-1px);
}

.action-btn.edit-btn {
    background: #3498db;
}

.action-btn.delete-btn {
    background: #e74c3c;
}

.action-btn.cancel-btn {
    background: #f1c40f;
}

.action-btn.confirm-btn {
    background: #27ae60;
}

.action-btn.download-btn {
    background: #0ea14c;
}

.action-btn.preview-btn {
    background: #f39c12;
}

.action-btn i {
    font-size: .9em;
    font-weight: 600;
}

/* Remove old button styles */
.action-buttons button {
    margin-right: 5px;
}
/* Filter Section Styles */
.filter-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.filter-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9em;
}

.filter-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.po-actions {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .filter-actions {
        justify-content: center;
    }
    
    .po-actions {
        flex-direction: column;
    }
}
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 5px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

/* Button Group Styles */
.button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.button-group .btn {
    flex: 1;
    max-width: 200px;
}

/* Account Section Styles */
.account-section {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.profile-pic-container {
    position: relative;
    width: 150px;
    height: 150px;
}

.profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #3498db;
}

.profile-pic-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #3498db;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-pic-edit:hover {
    background: #2980b9;
    transform: scale(1.1);
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 24px;
}

.profile-info p {
    color: #7f8c8d;
    margin-bottom: 5px;
}

.profile-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.account-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.account-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    color: #7f8c8d;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.account-tab.active {
    color: #3498db;
}

.account-tab.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #3498db;
}

.tab-content {
    display: none;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tab-content.active {
    display: block;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.2);
}

.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.btn-save {
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.btn-cancel {
    background: #e74c3c;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

/* Responsive adjustments for account section */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-actions {
        justify-content: center;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .account-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* User Management Styles */
.users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: .8em;
}

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

.users-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.users-table tr:hover {
    background-color: #f8f9fa;
}

.role-select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    color: #495057;
}

.role-select:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 8px;
    transition: all 0.2s ease;
}

.action-btn.edit-btn {
    background-color: #007bff;
    color: white;
}

.action-btn.delete-btn {
    background-color: #dc3545;
    color: white;
}

.action-btn:hover {
    opacity: 0.8;
}

.search-section {
    margin-bottom: 20px;
}

.search-section input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-section input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Theme Variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-color: #333;
    --background-color: #f5f7fa;
    --card-background: #ffffff;
    --button-primary: #3498db;
    --button-hover: #2980b9;
    --button-danger: #e74c3c;
    --button-success: #27ae60;
    --button-warning: #f39c12;
}

/* Theme 1: Default */
.theme-default {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-color: #333;
    --background-color: #f5f7fa;
    --card-background: #ffffff;
    --button-primary: #3498db;
    --button-hover: #2980b9;
    --button-danger: #e74c3c;
    --button-success: #27ae60;
    --button-warning: #f39c12;
}

/* Theme 2: Dark */
.theme-dark {
    --primary-color: #1a1a1a;
    --secondary-color: #2d2d2d;
    --accent-color: #4a90e2;
    --text-color: #ffffff;
    --background-color: #121212;
    --card-background: #2d2d2d;
    --button-primary: #4a90e2;
    --button-hover: #357abd;
    --button-danger: #e74c3c;
    --button-success: #27ae60;
    --button-warning: #f39c12;
}

/* Theme 3: Ocean */
.theme-ocean {
    --primary-color: #1a5276;
    --secondary-color: #2874a6;
    --accent-color: #3498db;
    --text-color: #333;
    --background-color: #eaf2f8;
    --card-background: #ffffff;
    --button-primary: #3498db;
    --button-hover: #2980b9;
    --button-danger: #e74c3c;
    --button-success: #27ae60;
    --button-warning: #f39c12;
}

/* Theme 4: Forest */
.theme-forest {
    --primary-color: #1e8449;
    --secondary-color: #27ae60;
    --accent-color: #2ecc71;
    --text-color: #333;
    --background-color: #e8f5e9;
    --card-background: #ffffff;
    --button-primary: #27ae60;
    --button-hover: #219a52;
    --button-danger: #e74c3c;
    --button-success: #27ae60;
    --button-warning: #f39c12;
}

/* Theme 5: Sunset */
.theme-sunset {
    --primary-color: #d35400;
    --secondary-color: #e67e22;
    --accent-color: #f39c12;
    --text-color: #333;
    --background-color: #fef5e7;
    --card-background: #ffffff;
    --button-primary: #e67e22;
    --button-hover: #d35400;
    --button-danger: #e74c3c;
    --button-success: #27ae60;
    --button-warning: #f39c12;
}

/* Theme 6: Royal */
.theme-royal {
    --primary-color: #4b2e83;
    --secondary-color: #5d3a9b;
    --accent-color: #6f42c1;
    --text-color: #333;
    --background-color: #f3f0f7;
    --card-background: #ffffff;
    --button-primary: #6f42c1;
    --button-hover: #5d3a9b;
    --button-danger: #e74c3c;
    --button-success: #27ae60;
    --button-warning: #f39c12;
}

/* Theme 7: Mint */
.theme-mint {
    --primary-color: #16a085;
    --secondary-color: #1abc9c;
    --accent-color: #2ecc71;
    --text-color: #333;
    --background-color: #e8f8f5;
    --card-background: #ffffff;
    --button-primary: #1abc9c;
    --button-hover: #16a085;
    --button-danger: #e74c3c;
    --button-success: #27ae60;
    --button-warning: #f39c12;
}

/* Theme 8: Coral */
.theme-coral {
    --primary-color: #e74c3c;
    --secondary-color: #e67e22;
    --accent-color: #f39c12;
    --text-color: #333;
    --background-color: #fef0f0;
    --card-background: #ffffff;
    --button-primary: #e74c3c;
    --button-hover: #c0392b;
    --button-danger: #e74c3c;
    --button-success: #27ae60;
    --button-warning: #f39c12;
}

/* Theme 9: Sky */
.theme-sky {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #3498db;
    --text-color: #333;
    --background-color: #ebf5fb;
    --card-background: #ffffff;
    --button-primary: #3498db;
    --button-hover: #2980b9;
    --button-danger: #e74c3c;
    --button-success: #27ae60;
    --button-warning: #f39c12;
}

/* Theme 10: Lavender */
.theme-lavender {
    --primary-color: #8e44ad;
    --secondary-color: #9b59b6;
    --accent-color: #af7ac5;
    --text-color: #333;
    --background-color: #f5eef8;
    --card-background: #ffffff;
    --button-primary: #9b59b6;
    --button-hover: #8e44ad;
    --button-danger: #e74c3c;
    --button-success: #27ae60;
    --button-warning: #f39c12;
}

/* Theme 11: Sand */
.theme-sand {
    --primary-color: #d35400;
    --secondary-color: #e67e22;
    --accent-color: #f39c12;
    --text-color: #333;
    --background-color: #fdf2e9;
    --card-background: #ffffff;
    --button-primary: #e67e22;
    --button-hover: #d35400;
    --button-danger: #e74c3c;
    --button-success: #27ae60;
    --button-warning: #f39c12;
}

/* Theme 12: Emerald */
.theme-emerald {
    --primary-color: #27ae60;
    --secondary-color: #2ecc71;
    --accent-color: #2ecc71;
    --text-color: #333;
    --background-color: #e8f8f5;
    --card-background: #ffffff;
    --button-primary: #2ecc71;
    --button-hover: #27ae60;
    --button-danger: #e74c3c;
    --button-success: #27ae60;
    --button-warning: #f39c12;
}

/* Theme 13: Gray */
.theme-gray {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #7f8c8d;
    --text-color: #333;
    --background-color: #f5f5f5;
    --card-background: #ffffff;
    --button-primary: #7f8c8d;
    --button-hover: #6c7a7d;
    --button-danger: #e74c3c;
    --button-success: #27ae60;
    --button-warning: #f39c12;
}

/* Theme 14: Crimson */
.theme-crimson {
    --primary-color: #c0392b;
    --secondary-color: #e74c3c;
    --accent-color: #e74c3c;
    --text-color: #333;
    --background-color: #fef0f0;
    --card-background: #ffffff;
    --button-primary: #e74c3c;
    --button-hover: #c0392b;
    --button-danger: #e74c3c;
    --button-success: #27ae60;
    --button-warning: #f39c12;
}

/* Theme 15: Indigo */
.theme-indigo {
    --primary-color: #3f51b5;
    --secondary-color: #5c6bc0;
    --accent-color: #7986cb;
    --text-color: #333;
    --background-color: #e8eaf6;
    --card-background: #ffffff;
    --button-primary: #5c6bc0;
    --button-hover: #3f51b5;
    --button-danger: #e74c3c;
    --button-success: #27ae60;
    --button-warning: #f39c12;
}

/* Theme 16: MidnightBlue */
.theme-midnightblue {
    --primary-color: #191970;
    --secondary-color: #1a237e;
    --accent-color: #283593;
    --text-color: #333;
    --background-color: #e8eaf6;
    --card-background: #ffffff;
    --button-primary: #1a237e;
    --button-hover: #191970;
    --button-danger: #e74c3c;
    --button-success: #27ae60;
    --button-warning: #f39c12;
}

/* Theme 17: AliceBlue */
.theme-aliceblue {
    --primary-color: #4682b4;
    --secondary-color: #5f9ea0;
    --accent-color: #87ceeb;
    --text-color: #333;
    --background-color: #f0f8ff;
    --card-background: #ffffff;
    --button-primary: #5f9ea0;
    --button-hover: #4682b4;
    --button-danger: #e74c3c;
    --button-success: #27ae60;
    --button-warning: #f39c12;
}

/* Theme 18: DarkRed */
.theme-darkred {
    --primary-color: #8b0000;
    --secondary-color: #a52a2a;
    --accent-color: #dc143c;
    --text-color: #333;
    --background-color: #fff0f0;
    --card-background: #ffffff;
    --button-primary: #a52a2a;
    --button-hover: #8b0000;
    --button-danger: #e74c3c;
    --button-success: #27ae60;
    --button-warning: #f39c12;
}

/* Theme Settings Section */
.theme-settings {
    padding: 20px;
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.theme-option {
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-align: center;
    background: var(--card-background);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.theme-option:hover {
    transform: translateY(-5px);
}

.theme-preview {
    width: 100%;
    height: 100px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.theme-name {
    font-weight: bold;
    margin-bottom: 5px;
}

/* Update existing styles to use theme variables */
body {
    background: var(--background-color);
    color: var(--text-color);
}

header {
    background: var(--primary-color);
}

.sidebar {
    background: var(--secondary-color);
}

.card {
    background: var(--card-background);
}

.btn-primary {
    background: var(--button-primary);
}

.btn-primary:hover {
    background: var(--button-hover);
}

.btn-danger {
    background: var(--button-danger);
}

.btn-success {
    background: var(--button-success);
}

.btn-warning {
    background: var(--button-warning);
}

/* Add theme-specific sidebar styles for new themes */
.theme-gray .sidebar {
    background: #34495e;
}

.theme-crimson .sidebar {
    background: #e74c3c;
}

.theme-indigo .sidebar {
    background: #5c6bc0;
}

.theme-midnightblue .sidebar {
    background: #1a237e;
}

.theme-aliceblue .sidebar {
    background: #5f9ea0;
}

.theme-darkred .sidebar {
    background: #a52a2a;
}

/* Add theme-specific header hover colors for new themes */
.theme-gray header nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.theme-crimson header nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.theme-indigo header nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.theme-midnightblue header nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.theme-aliceblue header nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.theme-darkred header nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    padding: 10px;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    header nav {
        display: none;
    }

    .sidebar {
        transform: translateX(-100%);
        z-index: 1001;
        width: 100%;
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    footer {
        width: 100%;
        left: 0;
    }
}

.po-headline {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 5px;
    font-size: 22pt;
    font-weight: bold;
    margin: 10px 0;
    letter-spacing: 2px;
}

.weather-container {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    padding: 0 20px;
    font-size: 1.1em;
    min-width: 150px;
}

.weather-container i {
    font-size: 1.5em;
    min-width: 24px;
    text-align: center;
}

.weather-container span {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .weather-container {
        display: none;
    }
    
    .sidebar {
        transform: translateX(-100%);
        z-index: 1001;
        width: 100%;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }
}
.cancelled-overlay {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 72pt;
    color: #ff0000;
    opacity: 0.2;
    pointer-events: none;
    z-index: 1;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
}
.pdf-cancelled-overlay {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 72pt;
    color: #ff0000;
    opacity: 0.2;
    pointer-events: none;
    z-index: 1;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
    width: 100%;
    text-align: center;
}

/* Email Modal Styles */
.email-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.email-modal-content {
    background-color: #fff;
    width: 80%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.email-header {
    padding: 15px 20px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.email-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.email-close {
    color: #777;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.email-close:hover {
    color: #333;
}

.email-form {
    padding: 20px;
    overflow-y: auto;
}

.email-field {
    margin-bottom: 15px;
}

.email-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.email-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.email-body {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-height: 200px;
    resize: vertical;
    line-height: 1.5;
    background: #fff;
    outline: none;
}

.email-body[contenteditable="true"]:empty:before {
    content: attr(placeholder);
    color: #999;
    pointer-events: none;
}

.email-attachments {
    margin: 15px 0;
    padding: 10px;
    border: 1px dashed #ddd;
    border-radius: 4px;
}

#attachment-list {
    margin-bottom: 10px;
}

.attachment-item {
    display: flex;
    align-items: center;
    padding: 8px;
    background: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 5px;
}

.attachment-name {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.attachment-size {
    font-size: 12px;
    color: #777;
    margin: 0 10px;
}

.attachment-remove {
    color: #777;
    cursor: pointer;
}

.attachment-remove:hover {
    color: #d32f2f;
}

.attachment-loading {
    padding: 10px;
    color: #555;
    text-align: center;
    font-style: italic;
}

.btn-attach {
    background: #f1f1f1;
    border: 1px solid #ddd;
    color: #555;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-attach:hover {
    background: #e9e9e9;
}

.email-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.btn-send {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-send:hover {
    background: #1765cc;
}

.btn-cancel {
    background: #f1f1f1;
    border: 1px solid #ddd;
    color: #555;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-cancel:hover {
    background: #e9e9e9;
}

/* Dashboard Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.dashboard-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    transition: color 0.3s;
}

.month-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.month-selector label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    transition: color 0.3s;
}

.month-selector input[type="month"] {
    padding: 10px;
    border: 1px solid #e0e4e8;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    transition: border 0.3s, box-shadow 0.3s, background 0.3s;
}

.month-selector input[type="month"]:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.stat-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card p {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.total-po {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.confirmed-po {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.offset-po {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.flex-po {
    background: linear-gradient(135deg, #f39c12, #f1c40f);
}

.digital-po {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.vinyl-po {
    background: linear-gradient(135deg, #1abc9c, #16a085);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(70deg);
    transition: all 0.5s;
}

.stat-card:hover::before {
    top: -30%;
    left: -30%;
}

.dashboard-graphs-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.dashboard-graph {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
    min-height: 400px;
}

.dashboard-graph h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.dashboard-graph canvas {
    width: 100% !important;
    height: 350px !important;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    font-weight: 500;
}

.po-preview-content .po-row p {
    margin: 2pt 0;
    font-size: 10pt;
    line-height: 1.3;
}

.po-preview-content .po-row strong {
    color: #2c3e50;
    font-size: 10pt;
    font-weight: 600;
}

.po-preview-content .date-value {
    font-size: 13pt;
    color: #ff0000;
    font-weight: bold;
    margin-top: 0.1in;
}

/* PO Settings Styles */
#po-settings-tab .card {
    max-width: 800px;
    margin: 0 auto;
}

#po-settings-tab .form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85em;
}

#po-settings-tab .form-group input {
    font-family: monospace;
    letter-spacing: 1px;
}

/* Help Section Styles */
.help-content {
    padding: 20px;
}

.help-section {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.help-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.help-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.help-section ul, .help-section ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.help-section li {
    margin-bottom: 8px;
    line-height: 1.4;
}
.preview-po-btn, .download-po-btn, .po-preview-close, 
.edit-profile-btn, .change-password-btn, .change-photo-btn,
.account-section button, .account-section input, 
.edit-profile-form input, .change-password-form input, .change-photo-form input {
    opacity: 1 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.preview-po-btn:disabled, .download-po-btn:disabled, .po-preview-close:disabled,
.edit-profile-btn:disabled, .change-password-btn:disabled, .change-photo-btn:disabled,
.account-section button:disabled, .account-section input:disabled,
.edit-profile-form input:disabled, .change-password-form input:disabled, .change-photo-form input:disabled {
    opacity: 1 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.po-preview-modal {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    visibility: visible !important;
}

.po-preview-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.po-preview-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

.po-preview-actions {
    margin-bottom: 15px;
    text-align: right;
}

/*.po-preview-container {
    max-height: 60vh;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
}
*/

.po-header, .po-sizes, .po-footer {
    margin: 10px 0;
}

.po-logo img {
    max-width: 150px;
}

.po-company-info {
    text-align: right;
}



/* Notification System */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease forwards;
}

.notification.success {
    border-left: 4px solid #27ae60;
}

.notification.error {
    border-left: 4px solid #e74c3c;
}

.notification i {
    font-size: 1.2em;
}

.notification.success i {
    color: #27ae60;
}

.notification.error i {
    color: #e74c3c;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
}

.notification-message {
    color: #7f8c8d;
    font-size: 0.9em;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Delete Confirmation Modal */
.delete-confirm-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.delete-confirm-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

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

.delete-confirm-icon {
    font-size: 48px;
    color: #e74c3c;
    margin-bottom: 20px;
}

.delete-confirm-title {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.delete-confirm-message {
    color: #7f8c8d;
    margin-bottom: 25px;
    line-height: 1.5;
}

.delete-confirm-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.delete-confirm-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.delete-confirm-btn.delete {
    background-color: #e74c3c;
    color: white;
}

.delete-confirm-btn.delete:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.delete-confirm-btn.cancel {
    background-color: #bdc3c7;
    color: #2c3e50;
}

.delete-confirm-btn.cancel:hover {
    background-color: #95a5a6;
    transform: translateY(-2px);
}

/* Calendar Styles */
.calendar-container {
    width: 100%;
    height: calc(100vh - 120px); /* Reduced from 60px to 120px to account for header and footer */
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent scrolling of the container itself */
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 10px;
}

.calendar-header h2 {
    margin: 0;
    font-size: 20px;
    color: var(--text-color);
}

.calendar-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-controls button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.calendar-controls span {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
}

.calendar-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f5f5f5; /* Light gray background */
    border-radius: 8px;
    padding: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0; /* Light gray border */
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--text-color);
    font-size: 1.5em;
    background: #ffffff; /* White background for weekdays */
    padding: 5px;
    border-radius: 4px;
}

.calendar-weekdays div {
    text-align: center;
    padding: 5px;
    border-right: 1px solid #e0e0e0; /* Vertical grid lines */
}

.calendar-weekdays div:last-child {
    border-right: none; /* Remove border from last column */
}

.calendar-days {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
    background: #ffffff; /* White background for days */
    padding: 5px;
    border-radius: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    background: #ffffff;
    border-radius: 4px;
    padding: 5px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    color: var(--text-color);
    overflow: hidden;
    font-size: 1.5em;
    border: 1px solid #e0e0e0;
    min-height: 100px;
}

.calendar-day:hover:not(.empty) {
    background: #f0f0f0;
    border-color: #bdbdbd;
}

.calendar-day .day-number {
    font-size: 1.5em;
    font-weight: bold;
    margin: 0;
    color: var(--text-color);
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 1; /* Ensure day number is above PO numbers */
}

.calendar-po-numbers {
    font-size: 0.4em;
    color: var(--text-color);
    text-align: right;
    width: 50%;
    overflow-y: auto;
    max-height: calc(100% - 30px);
    padding: 1px 2px;
    border-radius: 2px;
    margin: 0;
    position: absolute;
    top: 10px;
    right: 5px;
    max-width: none;
    font-family: monospace;
    letter-spacing: 1px;
    scrollbar-width: thin;
    scrollbar-color: #bdbdbd #f0f0f0;
}

.calendar-po-numbers .po-number {
    color: #e74c3c;
    font-size: 11pt;
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.4pt;
    padding: 1px 4px;
    border-radius: 2px;
    margin-bottom: 1px;
    display: block;
    width: 100%;
    text-align: right;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.calendar-po-numbers .po-number.active {
    background-color: #5fbd71;
    color: black;
    border: 1px solid #4a9d5b;
}

.calendar-po-numbers .po-number.cancelled {
    background-color: #f17083;
    color: black;
    border: 1px solid #de4f64;
}

/* Webkit scrollbar styles */
.calendar-po-numbers::-webkit-scrollbar {
    width: 4px; /* Make scrollbar thinner */
}

.calendar-po-numbers::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 2px;
}

.calendar-po-numbers::-webkit-scrollbar-thumb {
    background: #bdbdbd;
    border-radius: 2px;
}

.calendar-po-numbers::-webkit-scrollbar-thumb:hover {
    background: #9e9e9e;
}

.calendar-po-numbers .po-number.active {
    background-color: #5fbd71;
    color: black;
    padding: 1px 4px; /* Reduce vertical padding */
    border-radius: 2px;
    margin-bottom: 1px; /* Reduce gap between numbers */
    display: block;
    width: 100%;
    text-align: right;
}

.calendar-po-numbers .po-number.cancelled {
    background-color: #f17083;
    color: black;
    padding: 1px 4px; /* Reduce vertical padding */
    border-radius: 2px;
    margin-bottom: 1px; /* Reduce gap between numbers */
    display: block;
    width: 100%;
    text-align: right;
}



.po-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

.po-item {
    background: var(--bg-color);
    border-radius: 4px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.po-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.po-actions button {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.po-actions button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.po-actions button:hover::before {
    left: 100%;
}

.po-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.po-actions button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.po-actions button i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.po-actions button:hover i {
    transform: scale(1.1);
}

/* Specific hover effects for each button type */
.po-actions .btn-danger:hover {
    background: #c0392b;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.po-actions .btn-warning:hover {
    background: #d68910;
    box-shadow: 0 4px 12px rgba(241, 196, 15, 0.3);
}

.po-actions .btn-info:hover {
    background: #0c8f3f;
    box-shadow: 0 4px 12px rgba(14, 161, 76, 0.3);
}

.po-actions .btn-primary:hover {
    background: #2980b9;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.po-actions .btn-success:hover {
    background: #27ae60;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.po-actions .btn-secondary:hover {
    background: #d68910;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .po-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .po-actions button {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
    }
}

.email-formatting-toolbar {
    display: flex;
    gap: 5px;
    padding: 5px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.email-formatting-toolbar button {
    background: none;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    color: #555;
    border-radius: 3px;
}

.email-formatting-toolbar button:hover {
    background: #e9e9e9;
    color: #333;
}

.email-formatting-toolbar button i {
    font-size: 14px;
}

.email-signature {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.signature-content {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

.signature-content p {
    margin: 0;
    padding: 0;
}

/* Global Search Styles */
.global-search-container {
    position: relative;
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.search-icon {
    cursor: pointer;
    font-size: 1.2em;
    color: #f0f0f0;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.search-icon:hover {
    color: #99e6ff;
    background-color: rgba(255, 255, 255, 0.1);
}

.global-search-input {
    position: absolute;
    right: 0;
    top: 0;
    width: 300px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
    font-size: 1em;
    outline: none;
}

.global-search-input:focus {
    border-color: #99e6ff;
    box-shadow: 0 0 0 2px rgba(153, 230, 255, 0.2);
}

@media (max-width: 768px) {
    .global-search-input {
        width: 100%;
        min-width: 200px;
    }
}

/* Date Range Download Modal Styles */
.date-range-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.date-range-modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    animation: modalFadeIn 0.3s ease-out;
}

.date-range-header {
    background: #2980b9;
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-range-header h3 {
    margin: 0;
    font-size: 1.2em;
}

.date-range-close {
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.date-range-close:hover {
    opacity: 0.7;
}

.date-range-form {
    padding: 20px;
}

.date-range-field {
    margin-bottom: 20px;
}

.date-range-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.date-range-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.date-range-input:focus {
    outline: none;
    border-color: #2980b9;
    box-shadow: 0 0 0 2px rgba(41, 128, 185, 0.2);
}

.date-range-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-download {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.btn-download:hover {
    background: #229954;
}

.btn-cancel {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-cancel:hover {
    background: #7f8c8d;
}

@media (max-width: 768px) {
    .date-range-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .date-range-actions {
        flex-direction: column;
    }
    
    .btn-download, .btn-cancel {
        width: 100%;
        justify-content: center;
    }
}