/*--------------------------------------------------------------*/
/* PERITIALFORMS - CORPORATE DESIGN SYSTEM                      */
/* Paleta unificada: Navy corporativo                           */
/*--------------------------------------------------------------*/

/*--------------------------------------------------------------*/
/* COLOR PALETTE (reference)                                     */
/*                                                               */
/* Primary:       #1e3a5f  (deep navy)                          */
/* Primary Dark:  #142d4c  (navbar hover, accents)              */
/* Primary Light: #2b6cb0  (links, CTAs)                        */
/* Admin Dark:    #1a202c  (admin navbar)                       */
/* Admin Hover:   #111827  (admin hover)                        */
/* Success:       #2d8a56  (completed, paid)                    */
/* Warning:       #c27c0e  (caution, pending)                   */
/* Danger:        #c0392b  (urgent, overdue)                    */
/* Muted:         #8896a4  (inactive, pending)                  */
/* Border:        #d1d9e0  (subtle borders)                     */
/* Background:    #f4f6f8  (page background)                    */
/* Text:          #2d3748  (body text)                          */
/* Text Light:    #6b7280  (secondary text)                     */
/*--------------------------------------------------------------*/

/*--------------------------------------------------------------*/
/*--BASE STYLES--*/
/*--------------------------------------------------------------*/

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #2d3748;
    background-color: #f4f6f8;
}

.fa-btn {
    margin-right: 6px;
}

/*--------------------------------------------------------------*/
/*--VOID-AVATAR ROUND--*/
/*--------------------------------------------------------------*/
.void-avatar {
    border-radius: 50%;
    max-width: 32px;
    min-width: 32px;
    max-height: 32px;
    min-height: 32px;
    background: #1e3a5f;
    color: white;
    text-align: center;
    font-size: 18px;
    line-height: 1.80;
    display: inline-block;
}

.void-avatar span {
    padding-top: 15px;
}

/*--------------------------------------------------------------*/
/*--SPIN LOADER--*/
/*--------------------------------------------------------------*/

.backgroundLoader {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.spinloader {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 5px solid #d1d9e0;
    border-radius: 50%;
    border-top: 5px solid #1e3a5f;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinloader-off {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 5px solid #d1d9e0;
    border-radius: 50%;
    border-top: 5px solid #1e3a5f;
    -webkit-animation: none;
    animation: none;
}

/*--------------------------------------------------------------*/
/*--EVALUATIONS--*/
/*--------------------------------------------------------------*/

.evaluation-row .col-md-1, .evaluation-row .col-md-2, .evaluation-row .col-md-3, .evaluation-row .col-md-4, .evaluation-row .col-md-5, .evaluation-row .col-md-6, .evaluation-row .col-md-7, .evaluation-row .col-md-8, .evaluation-row .col-md-9, .evaluation-row .col-md-10, .evaluation-row .col-md-11, .evaluation-row .col-md-12 {
    padding-right: 1px !important;
    padding-left: 1px !important;
}

.evaluation-row input {
    height: 25px !important;
    font-size: 13px !important;
    border: 0;
    border-radius: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.evaluation-row input:disabled {
    background-color: transparent !important;
    text-align: right;
    height: 25px !important;
    font-size: 9px !important;
    border: 0;
    border-radius: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.evaluation-row input[type=number] {
    text-align: right;
}

.evaluation-row input[type=number]:disabled {
    text-align: right;
    font-size: 9px !important;
    background-color: transparent !important;
}

.evaluation-row input[type=number]:-moz-read-only {
    text-align: right;
    font-size: 9px !important;
    background-color: transparent !important;
}
.evaluation-row input[type=number]:read-only {
    text-align: right;
    font-size: 9px !important;
    background-color: transparent !important;
}

.evaluation-row .transparent-input {
    text-align: right;
    font-size: 9px !important;
    background-color: transparent !important;
    margin-top: 5px;
}

.evaluation-row textarea {
    font-weight: bold;
    background-color: transparent !important;
    border: none !important;
    resize: vertical;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.evaluation-row hr {
    margin: 5px 0;
}

.input-group-addon {
    background-color: transparent;
    border: none;
}

/*-- EVAL PARTY TABLES --*/
.party-evals {
    width: 100%;
    border: 1px solid #d1d9e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin: 0px;
}

/*-- EVAL TABLES - Tonos cohesivos --*/

/* Edificacion */
.eval-edif {
    border-left: 3px solid #c0392b !important;
    border-right: 3px solid #c0392b !important;
    font-size: 10px;
}
.eval-edif th p { font-size: 18px; color: white; margin: 0; }
.eval-edif-total { color: #c0392b; text-align: right; }
.eval-edif-total2 { text-align: right; }

/* Muebles */
.eval-furnit {
    border-left: 3px solid #1e3a5f !important;
    border-right: 3px solid #1e3a5f !important;
    font-size: 10px;
}
.eval-furnit th p { font-size: 18px; color: white; margin: 0; }
.eval-furnit-total { color: #1e3a5f; text-align: right; }

/* Joyas */
.eval-jewel {
    border-left: 3px solid #c27c0e !important;
    border-right: 3px solid #c27c0e !important;
    font-size: 10px;
}
.eval-jewel th p { font-size: 18px; color: white; margin: 0; }
.eval-jewel-total { color: #c27c0e; text-align: right; }

/* Dinero */
.eval-money {
    border-left: 3px solid #2d8a56 !important;
    border-right: 3px solid #2d8a56 !important;
    font-size: 10px;
}
.eval-money th p { font-size: 18px; color: white; margin: 0; }
.eval-money-total { color: #2d8a56; text-align: right; }

/* RC */
.eval-rc {
    border-left: 3px solid #38a169 !important;
    border-right: 3px solid #38a169 !important;
    font-size: 10px;
}
.eval-rc th p { font-size: 18px; color: white; margin: 0; }
.eval-rc-total { color: #38a169; text-align: right; }

/* AGA Edificacion */
.eval-aga-edif {
    border-left: 3px solid #b45309 !important;
    border-right: 3px solid #b45309 !important;
    font-size: 10px;
}
.eval-aga-edif th p { font-size: 18px; color: white; margin: 0; }
.eval-aga-edif-total { color: #b45309; text-align: right; }

/* AGA Muebles */
.eval-aga-furnit {
    border-left: 3px solid #2b6cb0 !important;
    border-right: 3px solid #2b6cb0 !important;
    font-size: 10px;
}
.eval-aga-furnit th p { font-size: 18px; color: white; margin: 0; }
.eval-aga-furnit-total { color: #2b6cb0; text-align: right; }

/*--------------------------------------------------------------*/
/*--DOCUMENTS TAB--*/
/*--------------------------------------------------------------*/

.document-textarea-b {
    font-size: 16px !important;
    font-weight: bold;
    resize: none;
    outline: none;
    box-shadow: none !important;
    border: none !important;
    width: 90%;
    margin: 0 auto;
}

.document-textarea {
    font-size: 14px !important;
    resize: none;
    outline: none;
    box-shadow: none !important;
    border: none !important;
    width: 90%;
    margin: 0 auto;
}

/*--------------------------------------------------------------*/
/*--LATERAL NAVBAR - BASE--*/
/*--------------------------------------------------------------*/
.navbar-fixed-left {
    width: 170px;
    position: fixed;
    border-radius: 0;
    height: 100%;
    z-index: 2;
}

.navbar-fixed-left .navbar-nav > li {
    float: none;
    width: 169px;
    z-index: 2;
}

.navbar-fixed-left + .container {
    padding-left: 170px;
    z-index: 2;
}

.container {
    width: 90%;
    z-index: -1;
}

.navbar-fixed-left .navbar-nav > li > .dropdown-menu {
    margin-top: -50px;
    margin-left: 170px;
    z-index: 2;
}

/*--------------------------------------------------------------*/
/*--NAVBAR DEFAULT (light)--*/
/*--------------------------------------------------------------*/

.navbar-default {
    background-color: #f4f6f8;
    border-color: #d1d9e0;
    min-height: 64px;
}
.navbar-default .navbar-brand { color: #2d3748; }
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus { color: #1e3a5f; }
.navbar-default .navbar-nav > li > a { color: #4a5568; }
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus { color: #1e3a5f; }
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus { color: #1e3a5f; background-color: #e2e8f0; }
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus { color: #1e3a5f; background-color: #d1d9e0; }
.navbar-default .navbar-nav > .dropdown > a .caret { border-top-color: #4a5568; border-bottom-color: #4a5568; }
.navbar-default .navbar-nav > .dropdown > a:hover .caret,
.navbar-default .navbar-nav > .dropdown > a:focus .caret { border-top-color: #1e3a5f; border-bottom-color: #1e3a5f; }
.navbar-default .navbar-nav > .open > a .caret,
.navbar-default .navbar-nav > .open > a:hover .caret,
.navbar-default .navbar-nav > .open > a:focus .caret { border-top-color: #1e3a5f; border-bottom-color: #1e3a5f; }
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus { background-color: #d1d9e0; }
.navbar-default .navbar-toggle .icon-bar { background-color: #8896a4; }
@media (max-width: 767px) {
    .navbar-default .navbar-nav .open .dropdown-menu > li > a { color: #4a5568; }
    .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
    .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus { color: #1e3a5f; }
}
.navbar-default .borderlist { list-style-position: inside; border-bottom: 1px solid #d1d9e0; }

/*--------------------------------------------------------------*/
/*--NAVBAR ORANGE (mapped to primary for consistency)--*/
/*--------------------------------------------------------------*/

.navbar-orange {
    background-color: #1e3a5f;
    border-color: #142d4c;
    min-height: 64px;
}
.navbar-orange .navbar-brand { color: #f0f4f8; }
.navbar-orange .navbar-brand:hover,
.navbar-orange .navbar-brand:focus { color: #d1d9e0; }
.navbar-orange .navbar-nav > li > a { color: #f0f4f8; }
.navbar-orange .navbar-nav > li > a:hover,
.navbar-orange .navbar-nav > li > a:focus { color: white; background-color: #142d4c; }
.navbar-orange .navbar-nav > .active > a,
.navbar-orange .navbar-nav > .active > a:hover,
.navbar-orange .navbar-nav > .active > a:focus { color: white; background-color: #142d4c; }
.navbar-orange .navbar-nav > .open > a,
.navbar-orange .navbar-nav > .open > a:hover,
.navbar-orange .navbar-nav > .open > a:focus { color: white; background-color: #142d4c; }
.navbar-orange .navbar-nav > .dropdown > a .caret { border-top-color: #f0f4f8; border-bottom-color: #f0f4f8; }
.navbar-orange .navbar-nav > .dropdown > a:hover .caret,
.navbar-orange .navbar-nav > .dropdown > a:focus .caret { border-top-color: white; border-bottom-color: white; }
.navbar-orange .navbar-nav > .open > a .caret,
.navbar-orange .navbar-nav > .open > a:hover .caret,
.navbar-orange .navbar-nav > .open > a:focus .caret { border-top-color: white; border-bottom-color: white; }
.navbar-orange .navbar-toggle:hover,
.navbar-orange .navbar-toggle:focus { background-color: #142d4c; }
.navbar-orange .navbar-toggle .icon-bar { background-color: #f0f4f8; }
@media (max-width: 767px) {
    .navbar-orange .navbar-nav .open .dropdown-menu > li > a { color: #f0f4f8; }
    .navbar-orange .navbar-nav .open .dropdown-menu > li > a:hover,
    .navbar-orange .navbar-nav .open .dropdown-menu > li > a:focus { color: white; }
}
.navbar-orange .borderlist { list-style-position: inside; border-bottom: 1px solid transparent; }

/*--------------------------------------------------------------*/
/*--NAVBAR BLUE (user) - Corporate Navy--*/
/*--------------------------------------------------------------*/

.navbar-blue {
    background-color: #1e3a5f;
    border-color: #142d4c;
    min-height: 64px;
}
.navbar-blue .navbar-brand { color: #f0f4f8; }
.navbar-blue .navbar-brand:hover,
.navbar-blue .navbar-brand:focus { color: #d1d9e0; }
.navbar-blue .navbar-nav > li > a { color: #f0f4f8; }
.navbar-blue .navbar-nav > li > a:hover,
.navbar-blue .navbar-nav > li > a:focus { color: white; background-color: #142d4c; }
.navbar-blue .navbar-nav > .active > a,
.navbar-blue .navbar-nav > .active > a:hover,
.navbar-blue .navbar-nav > .active > a:focus { color: white; background-color: #142d4c; }
.navbar-blue .navbar-nav > .open > a,
.navbar-blue .navbar-nav > .open > a:hover,
.navbar-blue .navbar-nav > .open > a:focus { color: white; background-color: #142d4c; }
.navbar-blue .navbar-nav > .dropdown > a .caret { border-top-color: #f0f4f8; border-bottom-color: #f0f4f8; }
.navbar-blue .navbar-nav > .dropdown > a:hover .caret,
.navbar-blue .navbar-nav > .dropdown > a:focus .caret { border-top-color: white; border-bottom-color: white; }
.navbar-blue .navbar-nav > .open > a .caret,
.navbar-blue .navbar-nav > .open > a:hover .caret,
.navbar-blue .navbar-nav > .open > a:focus .caret { border-top-color: white; border-bottom-color: white; }
.navbar-blue .navbar-toggle:hover,
.navbar-blue .navbar-toggle:focus { background-color: #142d4c; }
.navbar-blue .navbar-toggle .icon-bar { background-color: #f0f4f8; }
@media (max-width: 767px) {
    .navbar-blue .navbar-nav .open .dropdown-menu > li > a { color: #f0f4f8; }
    .navbar-blue .navbar-nav .open .dropdown-menu > li > a:hover,
    .navbar-blue .navbar-nav .open .dropdown-menu > li > a:focus { color: white; }
    .navbar-blue .borderlist { list-style-position: inside; border-bottom: 1px solid transparent; }
    .navbar-blue .borderlist p { display: inline; }
    .navbar-blue .borderlist p:before { content: "\00a0\00a0"; }
}
@media (min-width: 768px) {
    .navbar-blue li { min-width: 80px !important; max-width: 80px; }
    .navbar-right li { min-width: 100px !important; max-width: 500px; }
    .navbar-blue .borderlist { list-style-position: inside; border-bottom: 1px solid rgba(255,255,255,0.1); text-align: center; display: block; font-size: 12px; }
    .navbar-blue .borderlist i { font-size: 14px !important; }
    .navbar-blue .borderlist p { margin: 0 0 -10px !important; }
}

/*--------------------------------------------------------------*/
/*--NAVBAR BLACK (admin) - Dark Slate--*/
/*--------------------------------------------------------------*/

.navbar-black {
    background-color: #1a202c;
    border-color: #111827;
}
.navbar-black .navbar-brand { color: #f0f4f8; }
.navbar-black .navbar-brand:hover,
.navbar-black .navbar-brand:focus { color: #d1d9e0; }
.navbar-black .navbar-nav > li > a { color: #f0f4f8; }
.navbar-black .navbar-nav > li > a:hover,
.navbar-black .navbar-nav > li > a:focus { color: white; background-color: #111827; }
.navbar-black .navbar-nav > .active > a,
.navbar-black .navbar-nav > .active > a:hover,
.navbar-black .navbar-nav > .active > a:focus { color: white; background-color: #111827; }
.navbar-black .navbar-nav > .open > a,
.navbar-black .navbar-nav > .open > a:hover,
.navbar-black .navbar-nav > .open > a:focus { color: white; background-color: #111827; }
.navbar-black .navbar-nav > .dropdown > a .caret { border-top-color: #f0f4f8; border-bottom-color: #f0f4f8; }
.navbar-black .navbar-nav > .dropdown > a:hover .caret,
.navbar-black .navbar-nav > .dropdown > a:focus .caret { border-top-color: white; border-bottom-color: white; }
.navbar-black .navbar-nav > .open > a .caret,
.navbar-black .navbar-nav > .open > a:hover .caret,
.navbar-black .navbar-nav > .open > a:focus .caret { border-top-color: white; border-bottom-color: white; }
.navbar-black .navbar-toggle:hover,
.navbar-black .navbar-toggle:focus { background-color: #111827; }
.navbar-black .navbar-toggle .icon-bar { background-color: #f0f4f8; }
@media (max-width: 767px) {
    .navbar-black .navbar-nav .open .dropdown-menu > li > a { color: #f0f4f8; }
    .navbar-black .navbar-nav .open .dropdown-menu > li > a:hover,
    .navbar-black .navbar-nav .open .dropdown-menu > li > a:focus { color: white; background-color: #111827; }
    .navbar-black .borderlist { list-style-position: inside; border-bottom: 1px solid transparent; }
    .navbar-black .borderlist p { display: inline; }
    .navbar-black .borderlist p:before { content: "\00a0\00a0"; }
}
@media (min-width: 768px) {
    .navbar-black li { min-width: 80px !important; max-width: 80px; }
    .navbar-right li, .dropdown-menu li { min-width: 100px !important; max-width: 500px; }
    .navbar-black .borderlist { list-style-position: inside; border-bottom: 1px solid rgba(255,255,255,0.08); text-align: center; display: block; font-size: 12px; }
    .navbar-black .borderlist i { font-size: 14px !important; }
    .navbar-black .borderlist p { margin: 0 0 -10px !important; }
}

/*--------------------------------------------------------------*/
/*--MODAL--*/
/*--------------------------------------------------------------*/
.modal-backdrop { z-index: 0 !important; }

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.close { color: white; float: right; font-size: 20px; opacity: 0.8; }
.close:hover, .close:focus { color: white; opacity: 1; text-decoration: none; }

.modal-content {
    position: relative;
    background-color: #ffffff;
    top: 100px;
    margin: auto;
    vertical-align: middle;
    border: none;
    border-radius: 4px;
    width: 75%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.3s;
    animation-name: animatetop;
    animation-duration: 0.3s;
}

@-webkit-keyframes animatetop {
    from { top: -300px; opacity: 0 }
    to { top: 100px; opacity: 1 }
}
@keyframes animatetop {
    from { top: -300px; opacity: 0 }
    to { top: 100px; opacity: 1 }
}

.modal-header {
    padding: 10px 16px;
    background-color: #1e3a5f;
    color: white;
    border-radius: 4px 4px 0 0;
}

.modal-body { padding: 15px 16px; }

.modal-footer {
    padding: 10px 16px;
    background-color: #f4f6f8;
    color: #2d3748;
    border-top: 1px solid #d1d9e0;
    border-radius: 0 0 4px 4px;
}

/*--------------------------------------------------------------*/
/*--CUSTOM DROPDOWN--*/
/*--------------------------------------------------------------*/

.dropbtn {
    background-color: #1e3a5f;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.dropdown { position: relative; display: inline-block; }

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border: 1px solid #d1d9e0;
}

.dropdown-content form { color: #2d3748; padding: 12px 16px; text-decoration: none; display: block; }
.dropdown-content a:hover { background-color: #f4f6f8; }
.dropdown:hover .dropdown-content { display: block; }
.dropdown:hover .dropbtn { background-color: #142d4c; }

/*--------------------------------------------------------------*/
/*--PRINTING SPECS--*/
/*--------------------------------------------------------------*/
@media print {
    body { visibility: hidden !important; }
    button { visibility: hidden !important; }
    #datos { visibility: visible !important; border: none; position: absolute !important; left: 0 !important; top: 0 !important; }
    #printingHeader { display: inline; }
    input, select { border: none !important; }
    #noPrinting { visibility: hidden !important; }
}

/*--------------------------------------------------------------*/
/*--MESSAGES STYLING--*/
/*--------------------------------------------------------------*/

.media ul { padding-left: 0px; font-size: 10px; margin-top: 0px; }

.message {
    background-color: #f8fafc;
    border-left: 2px solid #d1d9e0;
    border-bottom: 1px solid #e2e8f0;
    padding: 5px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.message-success {
    background-color: white;
    border-left: 3px solid #2d8a56;
    border-bottom: 1px solid #e2e8f0;
    padding: 5px;
    margin-top: 2px;
    margin-bottom: 2px;
}

/*--------------------------------------------------------------*/
/*--BS PROGRESS BAR--*/
/*--------------------------------------------------------------*/
.progress {
    font-size: 10px !important;
    line-height: 15px !important;
    height: 15px !important;
    margin-bottom: 2px;
    border-radius: 2px;
    background-color: #e2e8f0;
}

.progress-bar {
    font-size: 10px !important;
    line-height: 15px !important;
    height: 15px !important;
    background-color: #1e3a5f;
}

/*--------------------------------------------------------------*/
/*--VISIT-ROWS STYLING--*/
/*--------------------------------------------------------------*/
.visit-clickable-row {
    cursor: pointer;
    transition: background-color 0.15s;
}
.visit-clickable-row:hover {
    background-color: #edf2f7 !important;
}

/*--------------------------------------------------------------*/
/*--BOOTSTRAP OVERRIDES - Consistent Palette--*/
/*--------------------------------------------------------------*/

.btn-primary { background-color: #1e3a5f; border-color: #142d4c; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active { background-color: #142d4c; border-color: #0f2237; }

.panel-heading { background-color: #ffffff; border-bottom: 2px solid #d1d9e0; }

.label-primary { background-color: #1e3a5f; }
.label-info { background-color: #2b6cb0; }
