/* /dev/quote/salesforce-style.css */
/* VERSION 1.5 - Added styles for the new custom alert modal. */

body {
    background-color: #f4f6f9;
    font-family: 'Poppins', sans-serif;
    color: #333;
    margin: 0;
}
main {
    display: block;
}
.sf-container {
    max-width: 100% !important;
    margin: 20px auto;
    padding: 0 20px;
    width: -webkit-fill-available;
}
.sf-page-header {
    padding: 24px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 24px;
}


.sf-table-main-content::before{
    background-color: #4a174b24 !important;
}

.right-sidebar .sidebar-content{
    margin-top: 0 !important
}


.sf-page-header h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    color: #1a1b1e;
}
.sf-page-header p {
    font-size: 16px;
    color: #5f6772;
    margin-top: 4px;
}
.sf-card {
    background-color: #fff;
    border: 1px solid #dddbda;
    border-radius: .25rem;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
    margin-bottom: 20px;
}
.sf-card-header {
    padding: 16px 24px;
    border-bottom: 1px solid #dddbda;
    font-size: 18px;
    font-weight: 600;
}
.sf-card-body {
    padding: 24px;
}
.sf-table {
    width: 100%;
    border-collapse: collapse;
}
.sf-table th, .sf-table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
}
.sf-table th {
    font-weight: 600;
    color: #3e3e3c;
    font-size: 14px;
}
.sf-table td {
    font-size: 14px;
    color: #1a1b1e;
}
.sf-table tr:last-child td {
    border-bottom: none;
}
a.sf-btn, button.sf-btn {
    display: inline-flex;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: .25rem;
    text-decoration: none;
    transition: all .2s;
}
button.sf-btn {
    font-family: 'Poppins', sans-serif;
}
.sf-btn-primary {
    color: white;
    background: linear-gradient(180deg, #25091d 0%, #3d0649 100%);
    border-color: #25091d;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}
.sf-btn-primary:hover {
    color: white;
    background: linear-gradient(180deg, #3d0e2f 0%, #520b63 100%);
    border-color: #3d0e2f;
}
.sf-btn-primary:focus {
    outline: 0;
    border-color: #3d0e2f;
    box-shadow: 0 0 0 3px rgba(61, 6, 73, 0.35);
}
.sf-badge {
    display: inline-block;
    padding: .3em .6em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;
    padding: 14px;
    width: auto;
}
.sf-badge-pending { color: #444; background-color: #ffc107; }
.sf-badge-accepted { color: #fff; background-color: #28a1a7; }
.sf-badge-rejected { color: #fff; background-color: #dc3545; }
.sf-layout-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.sf-main-col { flex: 2; min-width: 300px; }
.sf-side-col { flex: 1; min-width: 280px; }
.sf-detail-section h4 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.sf-detail-section p { margin-bottom: 8px; }
.sf-message-thread { max-height: 400px; overflow-y: auto; }
.sf-message { padding: 12px; border-radius: 8px; margin-bottom: 10px; }
.sf-message.admin { background-color: #eaf3ff; }
.sf-message.user { background-color: #f3f3f3; }
.sf-message-author { font-weight: 600; margin-bottom: 4px; }
.sf-message-time { font-size: 0.8em; color: #5f6772; margin-top: 5px; }
.product-controls-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}
.compact-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-self: end;
}
.compact-preview-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    background-color: #eee;
}
.compact-preview .view-btn {
    padding: 8px 14px;
    font-size: 14px;
}
.compact-preview .view-btn:disabled {
    background-color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}
.sf-details-list {
    margin-top: 20px;
    border-top: 1px solid #e0e0e0;
}
.sf-details-list dt {
    font-weight: 600;
    color: #5f6772;
    padding: 12px 0 4px;
}
.sf-details-list dd {
    margin-left: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
    color: #1a1b1e;
}
.sf-details-list dd:last-child {
    border-bottom: none;
}
textarea.sf-input, input.sf-input, select.sf-input {
    width: 100%; 
    box-sizing: border-box;
    padding: 10px 12px; 
    border-radius: .25rem; 
    border: 1px solid #dddbda;
    margin-top: 8px; 
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
}
select.sf-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
}
textarea.sf-input:focus, input.sf-input:focus, select.sf-input:focus {
    outline: 0;
    border-color: #0070d2;
    box-shadow: 0 0 0 2px rgba(0, 112, 210, 0.25);
}
.form-group { margin-bottom: 1rem; }
.product-preview-container {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 20px;
    align-items: center;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    min-height: 130px; /* to prevent layout shift */
}
.product-preview-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    background-color: #eee;
}
.product-preview-details .view-btn {
    margin-top: 10px;
    padding: 6px 12px;
    font-size: 12px;
}
.product-preview-details .view-btn:disabled {
    background-color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}
.sf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.sf-modal-content {
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.sf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #e0e0e0;
}
.sf-modal-header h3 {
    margin: 0;
    font-size: 20px;
}
.sf-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    color: #888;
}
.sf-modal-body {
    padding: 24px;
}
.sf-modal-body img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 16px;
}
/* 
 * ===================================================================
 * START: THIS IS THE NEW CODE
 * Action: Added styles for the new custom alert modal.
 * ===================================================================
 */
.sf-alert-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Higher than other modals */
}
.sf-alert-modal-content {
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    padding: 32px 24px 24px 24px;
    box-shadow: 0 5px 15px rgba(0,0,0,.3);
}
.sf-alert-modal-body p {
    margin: 0 0 24px 0;
    font-size: 16px;
    color: #333;
}
/* 
 * ===================================================================
 * END: END OF THE NEW CODE
 * ===================================================================
 */