/* SADCR Forms */

.sadcr-form {
    background:#fff;
    border:1px solid #d9d9d9;
    padding:20px;
    border-radius:3px;
    margin:15px 0;
}


.sadcr-btn{

    margin-top:11px;

    padding:12px 42px;

    background:#304622;

    color:#fff;

    border:2px solid #222;

    border-radius:4px;

    font-size:16px;

    font-weight:700;

    cursor:pointer;

    transition:.2s;

}


.sadcr-btn:hover{
    background:#3b5629;
}


.sadcr-btn:active{
    transform:translateY(1px);
}



/* =========================
   HEADER
========================= */

.sadcr-header{

    display:flex;

    align-items:center;

    justify-content:space-between;

    background:#717171;

    color:#fff;

    padding:18px 30px;

}


.sadcr-header-left,
.sadcr-header-right{

    flex:1;

    display:flex;

    flex-direction:column;

    gap:4px;

}


.sadcr-header-left{
    text-align:right;
}


.sadcr-header-right{
    text-align:left;
}


.sadcr-header-logo{

    width:120px;

    display:flex;

    justify-content:center;

    align-items:center;

    margin:0 24px;

}


.sadcr-header-logo img{

    width:90px;

    height:auto;

    display:block;

}


.sadcr-header-left div,
.sadcr-header-right div{

    font-size:15px;

    font-weight:600;

    line-height:1.35;

    text-transform:uppercase;

}



/* =========================
   BODY
========================= */

.sadcr-body{

    padding:24px 0 0;

}


.sadcr-section{

    margin-bottom:24px;

    padding:0 24px;

}


.sadcr-section-title{

    margin:0 0 20px;

    padding:12px 18px;

    width:100%;

    box-sizing:border-box;

    background:linear-gradient(#f4f4f4,#e9e9e9);

    border:1px solid #d4d4d4;

    color:#222;

    font-size:18px;

    font-weight:700;

}



/* =========================
   GRID / CARDS
========================= */


.sadcr-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:18px;

}


.sadcr-report-columns{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:15px;

    align-items:stretch;

    margin-bottom:24px;

}



.sadcr-card{

    background:#fff;

    border:1px solid #ddd;

    border-radius:3px;

    padding:20px;

}


.sadcr-card-title{

    margin-bottom:24px;

    font-size:17px;

    font-weight:700;

    color:#222;

}



/* =========================
   INPUTS
========================= */


.sadcr-field{

    display:flex;

    flex-direction:column;

    margin-bottom:18px;

}



.sadcr-label{

    margin-bottom:8px;

    font-size:14px;

    font-weight:700;

    color:#333;

}



.sadcr-input{

    width:100%;

    height:42px;

    padding:0 12px;

    border:1px solid #c7c7c7;

    border-radius:3px;

    background:#fff;

    box-sizing:border-box;

    transition:.15s;

}


.sadcr-input:focus{

    outline:none;

    border-color:#3b5629;

    box-shadow:0 0 0 3px rgba(79,123,59,.18);

}



.sadcr-textarea{

    width:100%;

    min-height:180px;

    resize:vertical;

    padding:12px;

    border:1px solid #c7c7c7;

    border-radius:3px;

    background:#fff;

    font-family:Arial, Helvetica, sans-serif;

    font-size:14px;

    line-height:1.5;

    box-sizing:border-box;

}


.sadcr-textarea:focus{

    outline:none;

    border-color:#3b5629;

    box-shadow:0 0 0 3px rgba(79,123,59,.18);

}



/* =========================
   ADD / REMOVE
========================= */


.sadcr-add{

    width:100%;

    height:44px;

    margin-top:10px;

    border:1px dashed #9f9f9f;

    background:#fafafa;

    color:#444;

    font-size:15px;

    font-weight:700;

    cursor:pointer;

}


.sadcr-add:hover{

    background:#f2f2f2;

}



.sadcr-remove{

    width:24px;

    height:24px;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:0;

    border:1px solid #ccc;

    border-radius:3px;

    background:#fff;

    cursor:pointer;

    font-size:14px;

    font-weight:700;

}



.sadcr-remove:hover{

    background:#e74c3c;

    border-color:#e74c3c;

    color:#fff;

}



.sadcr-prisoner-title{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:12px;

    font-size:15px;

    font-weight:700;

}



/* =========================
   SEPARATORS
========================= */


.arvr-prisoner,
.srvr-prisoner,
.reestrdai-prisoner,
.sadcr-material,
.sadcr-item,
.incident-participant{

    padding-bottom:20px;

    margin-bottom:20px;

    border-bottom:1px solid #e5e5e5;

}


.arvr-prisoner:last-child,
.srvr-prisoner:last-child,
.reestrdai-prisoner:last-child,
.sadcr-material:last-child,
.sadcr-item:last-child,
.incident-participant:last-child{

    border-bottom:none;

    padding-bottom:0;

    margin-bottom:0;

}



/* =========================
   ACTIONS
========================= */


.sadcr-actions{

    display:flex;

    justify-content:center;

    margin-top:28px;

}



/* =========================
   VIEW
========================= */


.sadcr-view-value{

    padding:10px 12px;

    background:#fafafa;

    border:1px solid #e0e0e0;

    min-height:20px;

    line-height:1.5;

    word-break:break-word;

}



.sadcr-link{

    color:#333333;

    text-decoration:underline;

    cursor:pointer;

}



.sadcr-link:hover{

    color:#3b5629;

}



/* =========================
   PHOTO UPLOAD / VIEW
========================= */


.sadcr-photo-upload,
.sadcr-photo-box {

    position:relative;

    width:245px;
    height:330px;

    overflow:hidden;

    border:1px solid #d8d8d8;

    background:#e9e9e9;

    margin-bottom:20px;

}



.sadcr-photo-upload {

    cursor:pointer;

}



.sadcr-photo-upload img,
.sadcr-photo-box img {

    width:100%;

    height:100%;

    object-fit:cover;

    display:block;

}



/* =========================
   TEXT OVER PHOTO
========================= */


.sadcr-photo-overlay {

    position:absolute;

    inset:0;


    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;


    pointer-events:none;

    text-align:center;

    padding:20px;

}



.sadcr-upload-title {

    font-size:22px;

    line-height:1.15;

    font-weight:700;

    color:#666;

}



.sadcr-upload-text {

    margin-top:6px;

    font-size:15px;

    line-height:1.3;

    color:#888;

}



/* =========================
   HIDE TEXT AFTER UPLOAD
========================= */


.sadcr-photo-upload img:not([src*="placehold"]) + .sadcr-photo-overlay {

    display:none;

}



/* =========================
   CROPPER MODAL
========================= */


.sadcr-crop-modal {

    display:none;

    position:fixed;

    inset:0;

    z-index:9999;

    background:rgba(0,0,0,.65);

    justify-content:center;

    align-items:center;

}



.sadcr-crop-window {

    width:560px;

    background:#fff;

    border:1px solid #d5d5d5;

    padding:20px;

    box-sizing:border-box;

}



.sadcr-crop-title {

    font-size:20px;

    font-weight:700;

    color:#222;

    margin-bottom:20px;

}



/* область фото */

.sadcr-crop-area {

    width:100%;

    height:520px;

    background:#222;

    overflow:hidden;

}



.sadcr-crop-area img {

    max-width:none;

    display:block;

}



/* кнопки */

.sadcr-crop-actions {

    display:flex;

    justify-content:center;

    gap:15px;

    margin-top:20px;

}



.sadcr-crop-actions .sadcr-btn {

    margin-top:0;

    min-width:160px;

}

/* =========================
   EDIT PHOTO OVERLAY FIX
========================= */


.sadcr-photo-overlay {

    position:absolute;

    inset:0;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    background:rgba(0,0,0,0.7);

    pointer-events:none;

    text-align:center;

    padding:20px;

    box-sizing:border-box;

}



.sadcr-upload-title {

    font-size:22px;

    line-height:1.2;

    font-weight:700;

    color:#fff;

}



.sadcr-upload-text {

    margin-top:8px;

    font-size:15px;

    line-height:1.3;

    color:#ddd;

}

.sadcr-report-full {
    width:100%;
}