/* Responsive Design - Mobile & Tablet */
@media screen and (max-width: 900px) {
    
    /* Loader */
    #Loader {
        float: left;
        margin-left: 60px;
        left: 0;
    }
    
    /* Login */
    .container-body-login {
        margin-top: 50% !important;
    }
    
    /* Top Actions */
    .TopActions p {
        width: 100% !important;
        max-width: 310px !important;
        text-align: left;
        white-space: nowrap;
        overflow: hidden !important;
        text-overflow: ellipsis;
    }
    
    input[type="text"] {
        font-size: inherit;
    }
    
    /* Filters */
    .Contentfilter {
        border-left: 1px solid #fff;
        height: 50px;
        margin-left: 15px;
    }
    
    .Contentfilter button {
        margin-right: 10px;
        margin-left: 15px;
        margin-top: 10px;
    }
    
    .ResetFiltre button {
        width: 100%;
        padding-left: 0px;
        overflow: hidden !important;
    }
    
    /* Layout */
    #RightSide {
        width: 46% !important;
    }
    
    .fieldsetFooter {
        width: 92%; /* Era 92%% - eroare */
        font-size: 12px;
    }
    
    /* Menu Mobile */
    .hideLeftMenu {
        display: block !important;
        margin: 10px;
        cursor: pointer;
    }
    
    .expandMenu {
        display: block !important;
        padding-top: 15px !important;
        margin-left: 15px !important;
        float: left;
    }
    
    #LeftSide {
        transform: translateX(-240px);
        position: fixed;
        transition: transform 0.3s ease; /* Adăugat pentru animație smooth */
    }
    
    #Content {
        display: block;
        margin-left: 0px;
    }
    
    /* Top Menu Dropdown */
    .top-r-menu-dropdownContent {
        position: absolute;
        left: auto;
        right: 3px;
        top: 11px;
    }
    
    .top-r-menu-dropdown span {
        display: none;
    }
    
    .top-r-menu li {
        border: none !important;
    }
    
    /* Logout */
    .labellogoutDisabled {
        display: block !important;
    }
    
    .hideLogOut {
        display: none !important;
    }
    
    .logoutDisabled {
        display: block !important;
    }
    
    /* Top Actions */
    #TopAction {
        border-left: none;
		display: inline-flex;
		position: absolute;
    }
    
    .TopActions {
        float: right;
        padding-bottom: 0px !important;
        padding-top: 0px !important;
        margin-right: 15px;
		/* display: inline-flex; */
    }
    
    .TopAction-dropdown-content {
        /* position: absolute; */
        left: auto;
        /* right: 0px; */
    }
    
    .topaction-line {
        display: none !important;
    }
    
    .topaction-hidden {
        display: block !important;
        margin-top: 12px !important;
    }
    
    /* Right Side */
    #RightSideTop {
        border-left: none;
        width: 100%;
    }
    
    /* Fieldset */
    .fieldset {
        margin-right: auto;
        border-left: none;
        overflow: unset !important;
    }
    
    .content-row {
        margin-left: 0px !important;
    }
    
    /* Footer */
    .footer {
        margin-left: 0px;
    }
    
    .text-muted {
        margin: 0px;
    }
    
    .hiddenLink {
        height: 65px;
    }
    
    /* Dashboard */
    .dashboard-item {
        width: 100% !important;
    }
    
    .dashboard-app {
        border-left: none;
    }
    
    /* Detalii Partener */
    .detaliiPartener {
        width: 100%;
    }
    
    .detaliiPartener hr {
        display: none;
    }
    
    .detaliiPartener span {
        float: left;
        margin: 5px !important;
    }
    
    /* Pager */
    .pager span {
        display: none;
    }
    
    /* Navigation */
    .sf-2 a, 
    .sf-2 a:visited {
        position: static !important;
    }
    
    /* Quick Find */
    .quickfind {
        margin-left: 0px !important;
        padding-left: 0px !important;
        border-right: none !important;
    }
    
    .quickfind input[type="text"] {
        width: 35%;
    }
    
    select.wide {
        width: 35%;
    }
    
    /* Antet */
    .antet_label {
        width: 50%;
    }
    
    .antet_label_stare {
        margin-left: 0px;
    }
    
    .antet_detalii_stare {
        display: block;
    }
    
    .antetbody hr {
        display: none;
    }
    
    span.DetailElement {
        margin-right: 10px;
    }
    
    .antet_stare_buttons {
        width: 75%;
    }
    
    /* States Select */
    .select-states-all {
        margin-left: 18%;
    }
    
    .menuOrdonare {
        position: sticky;
    }
    
    /* Forms */
    .aplus-form {
        width: 100%;
    }
    
    .aplus-from-img {
        width: 100%;
        margin-bottom: -25px;
    }
    
    /* Cookies Card */
    .cardcookies {
        display: initial;
        text-align: center;
    }
    
    .cardcookies-buttons {
        display: inline-flex;
    }
    
    .cardcookies-buttons input {
        margin-right: 5px;
    }
    
    .cardcookies-p {
        margin-top: 0px;
        margin-bottom: 6px;
    }
    
    /* FIX HOVER PE MOBILE */
    .btn-primary:hover,
    .topaction-line input:hover,
    .btn-info:hover,
    .btn-filtreOpen:hover,
    .return-button a:hover {
        border-color: inherit !important;
        background-color: inherit !important;
    }
    
    /* Active/Tap feedback pentru mobile */
    .btn-primary:active,
    .btn-info:active,
    .btn-filtreOpen:active,
    .return-button a:active {
        opacity: 0.8;
        transform: scale(0.98);
    }
}

/* Breakpoint specific pentru telefoane mici */
@media screen and (max-width: 400px) {
    .TopActions p {
        max-width: 250px !important;
    }
    
    .quickfind input[type="text"],
    select.wide {
        width: 100%;
    }
}

/*** Style for printing ***/
@media print {
    * {
        padding: 0;
        margin: 0;
    }
    
    body {
        font: 11px Tahoma, sans-serif;
        color: #545454;
    }
    
    img {
        border: 0;
        color: #555;
        vertical-align: middle;
        margin: 0px;
        outline: none;
    }
    
    a {
        text-decoration: underline;
        color: #3e6a98;
    }
    
    a:hover {
        text-decoration: none;
        color: #9ED105;
    }
    
    hr {
        height: 1px;
        border: 0;
        background: #7397b5;
        color: #7397b5;
        padding: 0;
        margin: 6px 0px 6px 0px;
    }
    
    li {
        list-style-type: none;
        padding-left: 10px;
    }
    
    table {
        background-color: #fff;
        padding: 2px;
    }
    
    table thead {
        background-color: #78A3F8;
        color: #fff;
        font-weight: bold;
    }
    
    table td {
        border-bottom: 1px solid #C3C3C3;
        border-right: 1px solid #C3C3C3;
    }
    
    #Logo {
        position: absolute;
        top: 0px;
        right: 0px;
    }
    
    #Header {
        margin-bottom: 40px;
    }
    
    #mm_placeHolder {
        display: none;
    }
    
    #Content {
        float: none;
        width: 800px;
    }
    
    #mm_placeHolder, 
    #RightSide, 
    #LeftSide {
        display: none;
    }
    
    .fieldsetbody {
        background-color: #EFEFF7;
        overflow: auto;
    }
    
    /* Hide for print */
    .legend, 
    .btnShowHide, 
    .menuOrdonare, 
    .hiddable, 
    .jsBtn, 
    .jsDelReply, 
    .jsEditReply {
        display: none !important;
    }
    
    .pager {
        padding: 1px;
        margin: 2px 4px;
        width: 230px;
        line-height: 16px;
        border-right: 1px solid #78A3F8;
    }
    
    .quickfind {
        padding: 0px 20px 0px 14px;
        margin: 0px 4px 2px 4px;
        line-height: 18px;
        white-space: nowrap;
    }
    
    .FilterChain {
        padding: 0px 20px 0px 14px;
        margin: 0px 4px 2px 4px;
        line-height: 18px;
        white-space: nowrap;
    }
    
    .scrollTableContainer {
        position: relative;
        overflow: auto;
        padding: 2px 2px 2px 2px;
        border: 1px solid #EFEFF7;
    }
    
    .scrollTableContainer thead tr {
        position: relative;
    }
    
    .scrollTableContainer th {
        border-bottom: 1px solid #c3c3c3;
    }
    
    .scrollTableContainer table {
        width: 100%;
    }
    
    .scrollTableContainer table a {
        font-weight: bold;
    }
    
    .minMax {
        max-height: 1000px;
    }
}