.os-list-container {
    max-width: 1200px;
    margin: 20px auto;
}

/* Table Layout */
.os-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-bottom: 20px;
    font-size: 13px; /* Smaller base font for table */
}

.os-table th, .os-table td {
    padding: 8px 10px; /* Reduced padding */
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: top; /* Changed to top for better alignment */
}

.os-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.os-table tr:hover {
    background: #fdfdfd;
}

.os-is-paga {
    background: #f1f8f1; /* Lighter background for paid row */
    color: #2e7d32;
}

.os-dash-item small {
    display: block;
    font-size: 11px;
    color: #777;
    margin-top: 2px;
}

.os-user-dashboard {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.os-dash-item {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-right: 1px solid #eee;
}

.os-dash-item:last-child {
    border-right: none;
}

.os-dash-item strong {
    display: block;
    font-size: 13px;
    color: #333;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.os-admin-dashboard .os-dash-item:nth-child(2) strong { color: #f39c12; }
.os-admin-dashboard .os-dash-item:nth-child(3) strong { color: #2e7d32; }
.os-admin-dashboard .os-dash-item:nth-child(4) strong { color: #0073aa; }

.os-user-dashboard .os-dash-item:nth-child(2) strong { color: #0073aa; }
.os-user-dashboard .os-dash-item:nth-child(3) strong { color: #f39c12; }
.os-user-dashboard .os-dash-item:nth-child(4) strong { color: #2e7d32; }

.os-badge-paga {
    background: #2e7d32;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    font-weight: normal;
}

.os-col-valor {
    width: 90px;
    font-weight: bold;
    color: #2e7d32;
    white-space: nowrap;
}

.os-col-id {
    width: 60px;
    font-weight: bold;
    color: #999;
}

.os-col-title {
    width: 180px;
    font-weight: 700;
}

.os-col-date {
    width: 85px;
    white-space: nowrap;
    color: #666;
}

.os-col-description {
    width: auto;
    color: #555;
    font-size: 9px !important; /* Menor para caber tudo */
    line-height: 1.1;
    min-width: 100px;
    max-width: 140px;
}

.os-desc-text {
    display: inline;
}

.os-col-description a.os-link-view-more,
.os-table td.os-col-description a.os-link-view-more {
    color: #0073aa !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    display: inline !important;
    font-size: 9px !important;
    margin-left: 2px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    line-height: normal !important;
    position: static !important;
}

.os-col-description a.os-link-view-more:after, 
.os-col-description a.os-link-view-more:before {
    display: none !important;
}

.os-col-description a.os-link-view-more:hover {
    color: #005177 !important;
    background: transparent !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

/* Modal Styling */
.os-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.7) !important;
    display: none !important; /* Force hidden by default */
    z-index: 999999 !important;
    align-items: center !important;
    justify-content: center !important;
}

.os-modal-overlay.is-active {
    display: flex !important;
}

.os-modal-content {
    background: #fff !important;
    width: 90% !important;
    max-width: 500px !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 30px rgba(0,0,0,0.4) !important;
    overflow: hidden !important;
    animation: osModalFadeIn 0.3s ease !important;
    position: relative !important;
}

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

.os-modal-header {
    background: #f8f9fa !important;
    padding: 12px 20px !important;
    border-bottom: 1px solid #eee !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.os-modal-header h4 {
    margin: 0 !important;
    font-size: 15px !important;
    color: #333 !important;
    font-weight: 700 !important;
}

#os-modal-close {
    background: #e74c3c !important;
    border: none !important;
    font-size: 18px !important;
    cursor: pointer !important;
    color: #fff !important;
    line-height: 1 !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

#os-modal-close:hover {
    background: #c0392b !important;
}

.os-modal-body {
    padding: 20px !important;
    max-height: 60vh !important;
    overflow-y: auto !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #333 !important;
    text-align: left !important;
}

.os-col-paid {
    width: 110px;
    text-align: center;
}

.os-col-actions {
    width: 100px;
    white-space: nowrap;
}

.os-actions-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.os-admin-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px;
    width: 100%;
    justify-content: flex-end;
}

.os-admin-actions .os-btn-edit,
.os-admin-actions .os-btn-delete,
.os-admin-actions .os-btn-reopen,
.os-admin-actions .os-btn-finish {
    padding: 1px 4px !important; /* Minimum padding */
    border-radius: 2px !important;
    text-decoration: none !important;
    font-size: 8px !important; /* Smaller text */
    font-weight: 600 !important;
    text-align: center !important;
    cursor: pointer !important;
    border: none !important;
    transition: background 0.2s !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.os-btn-edit {
    background: transparent !important;
    color: #2e7d32 !important;
    padding: 0 !important;
    font-size: 8px !important;
}

.os-btn-edit:hover {
    text-decoration: underline;
}

.os-btn-delete {
    background: #2e7d32 !important;
    color: #fff !important;
}

.os-btn-delete:hover {
    background: #1b5e20 !important;
}

.os-btn-reopen {
    background: #f39c12 !important;
    color: #fff !important;
}

.os-assigned-user {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 1px 4px !important;
    border-radius: 2px !important;
    font-size: 8px !important;
    margin-bottom: 0px !important;
    text-align: center;
    width: auto !important;
    display: inline-block !important;
}

.os-realizar-servico {
    width: 100%;
    padding: 6px 15px;
    background-color: #2e7d32;
    color: #fff !important;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    text-align: center;
}

.os-interested-badge {
    color: #2e7d32;
    font-weight: 700;
    font-size: 8px !important;
    display: block;
    margin-bottom: 0px !important;
}

.os-user-actions {
    display: flex;
    gap: 2px !important;
    justify-content: flex-end;
    margin-top: 2px;
}

.os-btn-user-finish {
    background: #2e7d32 !important;
    color: #fff !important;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.os-btn-deliver {
    display: inline-block;
    padding: 1px 4px !important;
    background-color: #25d366;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 8px !important;
    font-weight: bold;
    text-align: center;
}

.os-badge-taken {
    color: #888;
    font-size: 11px;
    font-style: italic;
}

.os-btn-toggle-paid {
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    width: 90px;
    text-align: center;
}

.os-status-label {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    width: 90px;
    text-align: center;
}

.os-status-pago-sim {
    background: #2e7d32;
    color: #fff;
}

.os-status-pago-sim:hover:not(span) {
    background: #1b5e20;
    box-shadow: 0 0 5px rgba(46, 125, 50, 0.5);
}

.os-status-pago-nao {
    background: #c62828;
    color: #fff;
}

.os-status-pago-nao:hover:not(span) {
    background: #b71c1c;
    box-shadow: 0 0 5px rgba(198, 40, 40, 0.5);
}

.os-user-status {
    text-align: center;
}

/* Filters and Form */
.os-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    align-items: flex-end;
    flex-wrap: wrap;
}

.os-filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 150px;
}

.os-filter-group label {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.os-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.os-filters input[type="text"],
.os-filters select, 
.os-filters input[type="date"] {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #fdfdfd;
    color: #333;
    width: 100%;
}

.os-filters button[type="submit"] {
    background: #2e7d32;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0;
}

.os-btn-clear {
    text-decoration: none;
    font-size: 13px;
    color: #888;
    padding: 10px;
}

.os-btn-clear:hover {
    color: #333;
    text-decoration: underline;
}

.os-filters button[type="submit"]:hover {
    background: #1b5e20;
}

.os-form-box {
    background: #fff;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.os-form-box h3 { margin-top: 0; margin-bottom: 20px; }

.os-form-box button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

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

.os-pagination .page-numbers {
    padding: 8px 12px;
    border: 1px solid #ddd;
    margin: 0 5px;
    text-decoration: none;
    border-radius: 4px;
    color: #0073aa;
}

.os-btn-cancel {
    display: inline-block;
    padding: 12px 20px;
    background: #eee;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    margin-left: 10px;
    font-size: 14px;
}

.os-btn-cancel:hover {
    background: #ddd;
}

.os-admin-form-wrapper {
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 900px) {
    .os-table thead { display: none; }
    .os-table tr { display: block; border: 1px solid #eee; margin-bottom: 15px; padding: 10px; }
    .os-table td { display: block; width: 100% !important; border: none; padding: 5px 0; text-align: left !important; }
    .os-actions-wrapper { justify-content: flex-start; margin-top: 10px; }
}
