.container, .navbar-static-top .container, .navbar-fixed-top .container, .navbar-fixed-bottom .container {
    width: 1400px !important;
    padding-left: 15px;
    padding-right: 15px;
}

/* Responsive pentru CRM și pagina principală. Regula veche de 1400px rămâne doar pe desktop. */
@media (max-width: 767px) {
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .container,
    .navbar-static-top .container,
    .navbar-fixed-top .container,
    .navbar-fixed-bottom .container {
        width: auto !important;
        max-width: 100% !important;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }

    #page {
        padding-top: 15px;
    }

    .home-sales-grid {
        margin: 0;
    }

    .home-sales-grid .home-sales-card {
        float: none;
        width: 100% !important;
        margin: 0 0 14px !important;
        box-sizing: border-box;
    }

    .home-sales-card .card {
        border: 1px solid #d9e2ea;
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
    }

    .home-sales-card .card-header,
    .home-sales-card .card-body {
        padding: 10px 12px;
    }

    .home-sales-card .card-title {
        margin: 0;
        font-size: 15px;
        line-height: 20px;
        overflow-wrap: anywhere;
    }

    .home-sales-card .card-body p {
        margin: 0;
        padding: 7px 0;
        border-bottom: 1px solid #edf1f4;
        font-size: 14px;
        line-height: 20px;
    }

    .home-sales-card .card-body p:last-child {
        border-bottom: 0;
    }

    .home-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 4px 0 12px;
    }

    .home-actions .btn {
        flex: 1 1 calc(50% - 8px);
        margin: 0 !important;
        box-sizing: border-box;
        white-space: normal;
        min-height: 38px;
    }

    .grid-view {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 420px) {
    .home-actions .btn {
        flex-basis: 100%;
    }
}
/*
.table.table-bordered th{
	max-width: 100px;
}
*/
.fullwidthmaxim{
	width: 1500px;
}

.line-through{
    text-decoration: line-through;
}
.underline{
    text-decoration: underline;
}
.input-medium {
    width: 190px !important;
}
.tasknote{
	margin-bottom: 10px;
}
.tasknote_user{

}
.backgroundred{
	background: red !important;
	color: #fff !important;
}
.backgroundblue{
	background: #063f7d !important;
	color: #fff !important;
}
.tasknote_description {
    padding: 5px;
    border-left: 2px solid #1BBC9B;
}
.tasknote .datetime{
	color: #999;
	font-size: 10px;
}
.tasknote .arrow{
    display: block;
    position: relative;
    top: -3px;
    left: -13px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #1BBC9B;
}
.tasknote p{
/* 	margin-top: -20px; */
}

.task.details{

}
.task.details .userfrom{
	color: #1BBC9B;
	font-weight: bold;
}
.task.details .userto{
	color: red;
	font-weight: bold;
}
.task.details .date{
    color: #999;
    font-size: 10px;
}
.task.details .title{
	font-size: 20px;
	line-height: 24px;
	}
.editable-input input,
.editable-input textarea{
	padding-right: 0px !important;
}
.editable-click, a.editable-click, a.editable-click:hover {
    border-bottom: 1px dashed #999 !important;
    }
.table th, .table td {
    padding: 4px 5px !important;
    }
label {
    font-weight: bold !important;
}
.errorSummary{
	color: red;
}
a.editable{
	color: #333;
}
a.editable.editable-empty{
	color: red;
}
#mapCanvas label { width: auto; display:inline; }
#mapCanvas img { max-width: none; }
.text-primary {
    color: #337ab7;
}
a.text-primary:focus, a.text-primary:hover {
    color: #286090;
}
table.statistic td,
table.statistic th{
	text-align: center;
}
.text-success {
    color: #3c763d;
}
a.text-success:focus, a.text-success:hover {
    color: #2b542c;
}
.text-info {
    color: #31708f;
}
a.text-info:focus, a.text-info:hover {
    color: #245269;
}
.text-warning {
    color: #8a6d3b;
}
a.text-warning:focus, a.text-warning:hover {
    color: #66512c;
}
.text-danger {
    color: #a94442;
}
a.text-danger:focus, a.text-danger:hover {
    color: #843534;
}
.bg-primary {
    background-color: #337ab7;
    color: #fff;
    padding: 5px;
}
a.bg-primary:focus, a.bg-primary:hover {
    background-color: #286090;
}
.bg-success {
    background-color: #dff0d8;
}
a.bg-success:focus, a.bg-success:hover {
    background-color: #c1e2b3;
}
.bg-info {
    background-color: #d9edf7;
}
a.bg-info:focus, a.bg-info:hover {
    background-color: #afd9ee;
}
.bg-warning {
    background-color: #fcf8e3;
}
a.bg-warning:focus, a.bg-warning:hover {
    background-color: #f7ecb5;
}
.bg-danger {
    background-color: #f2dede;
}
a.bg-danger:focus, a.bg-danger:hover {
    background-color: #e4b9b9;
}
#page {
    padding-top: 60px;
}
.grid-view {
    padding: 0 !important;
}
h1 {
    font-size: 24.5px;
}
input.span3, textarea.span3, .uneditable-input.span3,select,
input, textarea, .uneditable-input{
	width: 100% !important;
}
.input-small {
    width: 90px !important;
     margin-right: 11px;
}

.map{
   background-color: #F5F5F5;
    border: 1px solid #E3E3E3;
    border-radius: 4px 4px 4px 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05) inset;
    margin-bottom: 20px;
    min-height: 20px;
    padding: 19px;
}

.smallviewdistante{
float: left;
padding-right: 10px;
}

.boxfirstpage {
    min-height: 200px;
}
.boxfirstpage img{
	float: left;
}
.boxfirstpage select{
	width: 80% !important;
}

.errorMessage{
	color: red;
}

.red
li.red,
span.red,
h2.red,
h3.red{
	color: red !important;
}


/* Acțiuni rapide de pe Home: grupate pe tip, cu etichetă mică deasupra fiecărui grup */
.home-actions { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 8px 0 16px; }
.home-actions-group { display: flex; flex-direction: column; gap: 4px; }
.home-actions-label { font-size: 11px; line-height: 14px; letter-spacing: .06em; text-transform: uppercase; color: #8795a1; }
.home-actions-buttons { display: flex; flex-wrap: wrap; gap: 4px; }
.home-actions-buttons .btn { margin: 0; }
@media (max-width: 767px) { .home-actions-group { flex: 1 1 100%; } }
