/* SaatPro Workspace */

.spw-container{

    max-width:850px;

    width:100%;

    margin:40px auto;

    background:#fff;

    padding:35px;

    border-radius:12px;

    box-shadow:0 8px 25px rgba(0,0,0,.08);

    font-family:Arial, Helvetica, sans-serif;

    box-sizing:border-box;

    clear:both;

    overflow:hidden;

}
.spw-form{

    width:100%;

}

.spw-output{

    width:100%;

}

.spw-header{
    text-align:center;
    margin-bottom:35px;
}

.spw-header h1{
    color:#0056d2;
    margin-bottom:10px;
}

.spw-header p{
    color:#666;
    font-size:16px;
}

.spw-field{
    margin-bottom:20px;
}

.spw-field label{
    display:block;
    font-weight:bold;
    margin-bottom:8px;
}

.spw-field input,
.spw-field textarea{

    width:100%;
    padding:12px;

    border:1px solid #ddd;

    border-radius:6px;

    font-size:15px;

    box-sizing:border-box;

}

.spw-field textarea{

    resize:vertical;

}

.spw-button{

    background:#0056d2;

    color:white;

    padding:14px 30px;

    border:none;

    border-radius:6px;

    cursor:pointer;

    font-size:16px;

    font-weight:bold;

}

.spw-button:hover{

    background:#003d99;

}

.spw-output{

    margin-top:50px;

    padding:30px;

    border-top:4px solid #0056d2;

    background:#f7f9fc;

}

.spw-output h2{

    color:#0056d2;

}

.spw-output h3{

    margin-top:25px;

    color:#333;

}

.spw-output p{

    line-height:1.7;

}
.spw-button-group{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:15px;
    margin-top:20px;
    flex-wrap:wrap;
}

.spw-export-section{
    text-align:center;
}
.spw-secondary{

    background:#6c757d;

}

.spw-secondary:hover{

    background:#545b62;

}
.spw-document{

    background:#fff;

    padding:40px;

    border:1px solid #ddd;

}

.spw-doc-header{

    text-align:center;

    border-bottom:3px solid #0056d2;

    padding-bottom:20px;

    margin-bottom:30px;

}

.spw-doc-header h2{

    color:#0056d2;

    margin:0;

    letter-spacing:2px;

}

.spw-table{

    width:100%;

    border-collapse:collapse;

    margin-bottom:30px;

}

.spw-table th{

    background:#f1f5fb;

    text-align:left;

    padding:12px;

    border:1px solid #ddd;

}

.spw-table td{

    padding:12px;

    border:1px solid #ddd;

}

.spw-section{

    background:#fafafa;

    padding:20px;

    border-left:4px solid #0056d2;

    margin-bottom:25px;

}

.spw-signature{

    width:100%;

    margin-top:60px;

    text-align:center;

}

.spw-signature td{

    width:33%;

    vertical-align:top;

    padding:20px;

}.spw-required{

    color:red;

    font-weight:bold;

}

.spw-field select{

    width:100%;

    height:48px;

    padding:0 14px;

    font-size:16px;

    line-height:48px;

    color:#333;

    background:#fff;

    border:1px solid #ccc;

    border-radius:6px;

    box-sizing:border-box;

    appearance:auto;

}
.spw-field option{

    font-size:16px;

    color:#333;

}
/* ===========================
   PRINT STYLE
=========================== */

@media print {

html,
body{
    margin:0 !important;
    padding:0 !important;
    background:#fff !important;
}

body *{
    display:none !important;
}

#charterOutput,
#charterOutput *{
    display:block !important;
}

#charterOutput{
    position:absolute;
    left:0;
    top:0;
    width:100%;
    margin:0;
    padding:0;
    background:#fff;
}

.spw-document{
    border:none;
    box-shadow:none;
    padding:20px;
}

.spw-export-section{
    display:none !important;
}

.spw-button-group{
    display:none !important;
}

.spw-signature{
    page-break-inside:avoid;
}

table{
    page-break-inside:auto;
}

tr{
    page-break-inside:avoid;
}

h2,h3{
    page-break-after:avoid;
}

}
/* ==========================
   EXPORT SECTION
========================== */

.spw-export-section{

    margin-top:40px;

    padding-top:20px;

    border-top:2px solid #ddd;

    text-align:center;

}

.spw-export-section h3{

    margin-bottom:20px;

    color:#0056d2;

}
.spw-container *{

    box-sizing:border-box;

}

.spw-table{

    table-layout:fixed;

}

.spw-signature{

    table-layout:fixed;

}
/* =====================================
   MOBILE RESPONSIVE
===================================== */

@media screen and (max-width: 768px) {

    .spw-container{
        max-width:100%;
        margin:15px;
        padding:20px;
    }

    .spw-button-group{
        display:flex;
        flex-direction:column;
        align-items:center;
        gap:10px;
    }

    .spw-button{
        width:100%;
        max-width:300px;
    }

    .spw-signature td{
        display:block;
        width:100%;
        padding:20px 0;
        text-align:center;
    }

    .spw-table{
        display:block;
        overflow-x:auto;
    }

}
/* =====================================================
   AI PROJECT CHARTER ASSISTANT
===================================================== */

.spw-ai-section {
    margin: 25px 0;
    padding: 25px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.spw-ai-section h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

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

.spw-ai-section textarea {
    width: 100%;
    min-height: 180px;
    box-sizing: border-box;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

.spw-ai-status {
    margin-top: 12px;
    font-weight: 500;
}
    /* =====================================================
       CUSTOMIZATION MODAL BUTTONS
    ===================================================== */
    
    #spwCustomizationForm .spw-button-group {
        display: flex;
        gap: 12px;
        align-items: center;
        flex-wrap: wrap;
    }
    
    #spwCustomizationForm .spw-button {
        width: auto !important;
        min-width: 150px;
        height: 44px;
        padding: 10px 22px !important;
        margin: 0 !important;
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
    }
    
    #spwCustomizationForm #spwCustomizationSubmit {
        min-width: 150px;
    }
    
    #spwCustomizationForm #spwCustomizationCancel {
        min-width: 150px;
    }