:root {
    --sd-primary: #00a99d;
    --sd-primary-dark: #008c83;
    --sd-navy: #0b2f57;
    --sd-navy-dark: #082543;
    --sd-bg: #f3f7f9;
    --sd-light: #e9f8f6;
    --sd-text: #263238;
    --sd-muted: #6c7a89;
}

body.gray-bg.sd-login-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0b2f57 0%, #00a99d 100%);
    position: relative;
    overflow-x: hidden;
}

body.gray-bg.sd-login-body:before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(255,255,255,.12), transparent 28%);
    pointer-events: none;
}

.sd-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 15px;
}

.sd-login-box {
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    border-radius: 22px;
    padding: 35px 35px 28px 35px;
    box-shadow: 0 25px 70px rgba(0,0,0,.22);
    position: relative;
    z-index: 2;
}

.sd-login-logo {
    text-align: center;
    margin-bottom: 18px;
}

.sd-login-logo img {
    max-width: 250px;
    width: 100%;
    height: auto;
}

.sd-login-title {
    text-align: center;
    color: var(--sd-navy);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.sd-login-subtitle {
    text-align: center;
    color: var(--sd-muted);
    font-size: 14px;
    margin-bottom: 25px;
}

.sd-login-box .form-control {
    height: 46px;
    border-radius: 10px;
    border: 1px solid #d9e3e7;
    box-shadow: none;
}

.sd-login-box .form-control:focus {
    border-color: var(--sd-primary);
    box-shadow: 0 0 0 3px rgba(0,169,157,.12);
}

.sd-login-box .btn-primary {
    height: 46px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--sd-primary), var(--sd-navy));
    border: none;
    font-weight: 700;
}

.sd-login-box .btn-primary:hover,
.sd-login-box .btn-primary:focus {
    background: linear-gradient(135deg, var(--sd-primary-dark), var(--sd-navy-dark));
}

.sd-login-link {
    color: var(--sd-primary-dark);
    font-weight: 600;
}

.sd-login-link:hover {
    color: var(--sd-navy);
}

.sd-login-footer {
    text-align: center;
    color: #7d8b96;
    font-size: 12px;
    margin-top: 22px;
}

.sd-login-callout {
    margin-top: 22px;
    padding: 15px;
    background: var(--sd-light);
    border-radius: 14px;
    color: var(--sd-navy);
    font-size: 13px;
    text-align: center;
}

.sd-sidebar-logo {
    max-width: 165px;
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.nav-header {
    background: linear-gradient(135deg, #0b2f57 0%, #008c83 100%) !important;
}

.logo-element {
    background: #0b2f57;
    color: #ffffff !important;
    font-weight: bold;
}

.navbar-default .nav > li.active {
    border-left: 4px solid var(--sd-primary);
    background: #243746;
}

.navbar-default .nav > li > a:hover,
.navbar-default .nav > li > a:focus {
    background: #243746;
    color: #ffffff;
}

.btn-primary {
    background-color: var(--sd-primary);
    border-color: var(--sd-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--sd-primary-dark);
    border-color: var(--sd-primary-dark);
}

.label-primary,
.badge-primary {
    background-color: var(--sd-primary);
}

.page-heading h2 {
    color: var(--sd-navy);
    font-weight: 700;
}

.ibox-title h5 {
    color: var(--sd-navy);
    font-weight: 700;
}

.footer {
    color: #6c7a89;
}

.footer strong {
    color: var(--sd-navy);
}

/* Complemento visual - Cadastros de Clientes e Profissionais */
.sd-login-register-options {
    margin: 18px 0 15px 0;
}

.sd-register-card {
    display: block;
    padding: 14px 15px;
    margin-bottom: 10px;
    border-radius: 12px;
    text-align: left;
    color: #333;
    background: #fff;
    border: 1px solid #e7eaec;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sd-register-card:hover,
.sd-register-card:focus {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    color: #333;
}

.sd-register-card strong {
    display: block;
    font-size: 14px;
    color: #12395a;
}

.sd-register-card small {
    display: block;
    color: #777;
    margin-top: 4px;
    line-height: 16px;
}

.sd-register-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    line-height: 36px;
    margin-bottom: 8px;
    color: #fff;
}

.sd-register-cliente .sd-register-icon,
.sd-public-cliente .sd-public-icon {
    background: #00a89d;
}

.sd-register-profissional .sd-register-icon,
.sd-public-profissional .sd-public-icon {
    background: #1c84c6;
}

.sd-public-wrapper {
    width: 100%;
    max-width: 920px;
    margin: 35px auto;
    padding: 0 15px;
}

.sd-public-card {
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    border-top: 5px solid #1c84c6;
}

.sd-public-cliente {
    border-top-color: #00a89d;
}

.sd-public-profissional {
    border-top-color: #1c84c6;
}

.sd-public-header {
    text-align: center;
    margin-bottom: 25px;
}

.sd-public-back {
    display: inline-block;
    margin-bottom: 16px;
    color: #777;
    font-size: 13px;
}

.sd-public-icon {
    width: 62px;
    height: 62px;
    line-height: 62px;
    color: #fff;
    border-radius: 18px;
    margin: 0 auto 14px auto;
    font-size: 25px;
}

.sd-public-header h2 {
    margin: 0 0 8px 0;
    color: #12395a;
    font-weight: 700;
}

.sd-public-header p {
    color: #777;
    margin: 0 auto;
    max-width: 620px;
}

.sd-form-section-title {
    margin: 20px 0 15px 0;
    padding: 12px 15px;
    background: #f8fafb;
    border-left: 4px solid #00a89d;
    border-radius: 8px;
    font-weight: 700;
    color: #12395a;
}

.sd-credit-info {
    padding: 13px 15px;
    border-radius: 10px;
    background: #f3f8fc;
    color: #35637f;
    margin-bottom: 18px;
    border: 1px solid #d9edf7;
}

/* Oportunidades disponíveis - Cards */

.sd-oportunidade-card {
    border: 1px solid #e7eaec;
    border-radius: 6px;
    background: #fff;
    margin-bottom: 25px;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;

    height: 410px;
    display: flex;
    flex-direction: column;
}

.sd-oportunidade-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

.sd-card-topo {
    height: 125px;
    min-height: 125px;
    padding: 18px 18px 42px 18px;
    background: linear-gradient(135deg, var(--sd-primary) 0%, var(--sd-primary-dark) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.sd-card-topo h3 {
    color: #fff;
    font-size: 17px;
    line-height: 22px;
    margin: 0;
    font-weight: 700;

    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sd-card-categoria {
    display: block;
    margin-bottom: 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    opacity: .95;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sd-card-creditos {
    position: absolute;
    right: 15px;
    bottom: 10px;
    background: #f8ac59;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
    line-height: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    z-index: 2;
}

.sd-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.sd-card-descricao {
    height: 60px;
    min-height: 60px;
    color: #676a6c;
    font-size: 13px;
    line-height: 20px;
    margin-bottom: 15px;

    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.sd-info-grid {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    margin-top: 12px;
}

.sd-info-item {
    font-size: 12px;
    margin-bottom: 8px;
    color: #676a6c;
}

.sd-info-item i {
    width: 16px;
    color: var(--sd-primary);
}

.sd-card-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    margin-top: auto;
}

.sd-label-urgencia {
    font-size: 11px;
    padding: 4px 7px;
    border-radius: 3px;
    display: inline-block;
    font-weight: bold;
}

.sd-urgencia-1 {
    background: #e7eaec;
    color: #676a6c;
}

.sd-urgencia-2 {
    background: #f8ac59;
    color: #fff;
}

.sd-urgencia-3 {
    background: #ed5565;
    color: #fff;
}

.sd-card-actions .btn {
    margin-bottom: 5px;
}

.sd-sem-oportunidade {
    background: #fff;
    border: 1px dashed #dcdcdc;
    border-radius: 6px;
    padding: 35px;
    text-align: center;
    color: #999;
}

.sd-sem-oportunidade i {
    font-size: 42px;
    margin-bottom: 12px;
    color: #ccc;
}

.sd-paginacao-oportunidades {
    text-align: center;
    margin-top: 10px;
}

/* Contatos liberados - Cards */

.sd-contato-card {
    border: 1px solid #e7eaec;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 25px;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.sd-contato-card:hover {
    box-shadow: 0 5px 16px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

.sd-contato-topo {
    min-height: 120px;
    padding: 18px;
    background: linear-gradient(135deg, #0b2f57 0%, #00a99d 100%);
    color: #fff;
    position: relative;
}

.sd-contato-topo h3 {
    color: #fff;
    font-size: 17px;
    line-height: 22px;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.sd-contato-selo {
    position: absolute;
    top: 13px;
    right: 13px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    padding: 5px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.sd-contato-data {
    font-size: 12px;
    opacity: .9;
    margin-top: 8px;
}

.sd-contato-body {
    padding: 18px;
}

.sd-contato-cliente {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.sd-contato-cliente span {
    display: block;
    color: #999;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 3px;
}

.sd-contato-cliente strong {
    display: block;
    color: var(--sd-navy);
    font-size: 18px;
    line-height: 22px;
}

.sd-contato-acoes-principais {
    margin-bottom: 14px;
}

.sd-contato-dados {
    background: #f8fafb;
    border: 1px solid #edf1f2;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.sd-contato-dado {
    color: #676a6c;
    font-size: 12px;
    line-height: 20px;
    word-break: break-word;
}

.sd-contato-dado i {
    width: 18px;
    color: var(--sd-primary);
}

.sd-contato-resumo {
    min-height: 45px;
    color: #676a6c;
    font-size: 13px;
    line-height: 19px;
    margin-top: 13px;
}

/* Contatos liberados - Card V2 */

.sd-contato-card-v2 {
    border: 1px solid #e7eaec;
    border-radius: 6px;
    background: #fff;
    margin-bottom: 25px;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;

    height: 580px;
    display: flex;
    flex-direction: column;
}

.sd-contato-card-v2:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

.sd-contato-topo-v2 {
    height: 145px;
    min-height: 145px;
    padding: 18px 18px 42px 18px;
    background: linear-gradient(135deg, var(--sd-primary) 0%, var(--sd-primary-dark) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.sd-contato-topo-v2 h3 {
    color: #fff;
    font-size: 17px;
    line-height: 22px;
    margin: 0;
    font-weight: 700;
    padding-right: 15px;

    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sd-contato-status-v2 {
    position: absolute;
    right: 15px;
    bottom: 10px;
    background: #1ab394;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
    line-height: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    z-index: 2;
}

.sd-contato-data-v2 {
    font-size: 12px;
    margin-top: 8px;
    opacity: .95;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sd-contato-body-v2 {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.sd-contato-cliente-v2 {
    display: flex;
    align-items: center;
    background: #f8fafb;
    border: 1px solid #edf1f2;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
}

.sd-contato-avatar-v2 {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: var(--sd-light);
    color: var(--sd-primary-dark);
    text-align: center;
    line-height: 38px;
    font-size: 17px;
    margin-right: 10px;
}

.sd-contato-cliente-info-v2 span {
    display: block;
    color: #999;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 2px;
}

.sd-contato-cliente-info-v2 strong {
    display: block;
    color: var(--sd-navy);
    font-size: 15px;
    line-height: 18px;
}

.sd-contato-box-v2 {
    border: 1px solid #edf1f2;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 12px;
    background: #fff;
}

/*
.sd-contato-linha-v2 {
    font-size: 12px;
    color: #676a6c;
    line-height: 20px;
    word-break: break-word;
}
*/

.sd-contato-linha-v2 {
    font-size: 12px;
    color: #676a6c;
    line-height: 20px;
    word-break: break-word;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sd-contato-linha-v2 + .sd-contato-linha-v2 {
    margin-top: 4px;
}

.sd-contato-linha-v2 i {
    width: 17px;
    color: var(--sd-primary);
}

.sd-contato-descricao-v2 {
    height: 58px;
    min-height: 58px;
    margin-bottom: 12px;
    overflow: hidden;
    line-height: 19px;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.sd-info-grid-v2 {
    margin-top: 8px;
}

.sd-contato-whatsapp-v2 {
    margin-top: 14px;
}

.sd-card-footer-v2 {
    margin-top: auto;
    padding-top: 14px;
}
