.disabled .loading {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.disabled .icon {
    display: none;
}

.copy {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    word-break: break-all;
}

.copy::after {
    opacity: 0.7;
    font-family: "Material Icons";
    content: "\e14d";
    margin-left: 5px;
    font-size: 18px;
    flex-shrink: 0;
}

.copy-icon {
    cursor: pointer;
    display: flex;
}

.copy-icon::after {
    opacity: 0.7;
    font-family: "Material Icons";
    content: "\e14d";
    margin-left: 5px;
    font-size: 20px;
}

.page-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
}

.table-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
}

.modal-loading-body {
    height: 12em;
    padding: 4em 1em 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal textarea,
.modal #readdatadiv {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

.material-datatables {
    width: 100%;
}

.dataTables_wrapper {
    width: 100%;
}

/* Mobil kart listesi — masaüstünde gizli */
.mobile-card-list {
    display: none;
    flex-direction: column;
    gap: 10px;
}

.mobile-item-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.mobile-item-card .mic-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.mobile-item-card .mic-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
    word-break: break-word;
}

.mobile-item-card .mic-title a {
    color: #1976d2;
}

.mobile-item-card .mic-sub {
    font-size: 12px;
    color: #757575;
    margin-top: 2px;
    word-break: break-all;
}

.mobile-item-card .mic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 10px;
}

.mobile-item-card .mic-chip {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: #f5f5f5;
    color: #555;
}

.mobile-item-card .mic-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mobile-item-card .mic-actions .btn {
    margin: 0 !important;
    min-width: 40px;
    min-height: 40px;
    padding: 8px 10px !important;
}

.mobile-item-card .mic-empty {
    text-align: center;
    color: #999;
    padding: 24px 8px;
    font-size: 14px;
}

.mobile-search {
    display: none;
    margin-bottom: 10px;
}

.mobile-search input {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #ccc;
    padding: 10px 4px;
    font-size: 15px;
    background: transparent;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* ---- Mobil / tablet ---- */
@media (max-width: 991px) {
    .wrapper {
        height: auto !important;
    }

    .main-panel {
        width: 100% !important;
        float: none !important;
    }

    .main-panel > .content {
        margin-top: 60px;
        padding: 12px 10px 40px;
    }

    .main-panel > .content > .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }

    .main-panel > .content .row {
        margin-left: 0;
        margin-right: 0;
    }

    .main-panel > .content .row > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .navbar.navbar-absolute {
        padding-left: 8px;
        padding-right: 8px;
    }

    .navbar .navbar-brand {
        max-width: 55vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 1.05rem;
        font-weight: 600;
    }

    .navbar-minimize {
        display: none !important;
    }

    .card {
        margin-bottom: 16px;
        border-radius: 14px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .card .card-header {
        display: flex !important;
        flex-direction: column;
        align-items: stretch !important;
        gap: 10px;
        padding: 14px 14px 8px !important;
    }

    .card .card-header .card-icon {
        margin-top: 0 !important;
        float: none !important;
    }

    .card .card-header .card-title {
        white-space: normal !important;
        line-height: 1.35;
        margin: 0 0 4px !important;
        padding: 0 !important;
        font-size: 1.05rem;
    }

    .card .card-header .page-toolbar {
        width: 100%;
        justify-content: stretch !important;
        gap: 8px;
    }

    .card .card-header .page-toolbar .btn {
        flex: 1 1 auto;
        margin: 0 !important;
        min-height: 42px;
    }

    .card .card-body {
        padding: 8px 12px 16px !important;
    }

    /* Masaüstü tablo gizle, mobil kart göster */
    .material-datatables,
    .dataTables_wrapper {
        display: none !important;
    }

    .mobile-card-list,
    .mobile-search {
        display: flex;
    }

    .mobile-search {
        display: block;
    }

    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem) !important;
        width: calc(100% - 1rem) !important;
    }

    .modal-body .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .modal-body .btn-round,
    .modal-body .btn {
        width: 100%;
        margin: 4px 0 !important;
        min-height: 44px;
    }

    .footer {
        padding: 12px 8px 24px;
        text-align: center;
    }

    .footer .float-left,
    .footer .float-right,
    .footer .copyright {
        float: none !important;
        display: block;
        width: 100%;
        text-align: center;
        margin: 4px 0;
    }

    .modem-status-list {
        flex-direction: column;
        align-items: stretch;
        padding: 0 2px;
    }

    .modem-status-card {
        width: 100% !important;
        max-width: 100% !important;
    }

    .modem-card-inner {
        flex-wrap: wrap;
        gap: 8px;
    }

    .modem-id-row,
    .modem-stats-row {
        flex-wrap: wrap !important;
        white-space: normal !important;
    }

    .modem-query-all {
        width: 100%;
        justify-content: center;
        min-height: 40px;
    }

    /* Login */
    .wrapper-full-page .page-header.login-page {
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 72px;
    }

    .login-page .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        margin: 0 auto;
    }

    .login-page .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
    }

    .login-page .row > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .card-login {
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 420px;
        border-radius: 16px;
    }

    .card-login .card-header {
        margin-left: 12px !important;
        margin-right: 12px !important;
    }

    .card-login .btn {
        width: 100%;
        max-width: 100%;
        min-height: 44px;
    }

    .card-login .card-footer a {
        display: block;
        font-size: 11px;
        line-height: 1.4;
        word-break: break-word;
        padding: 0 8px;
    }

    .off-canvas-sidebar .navbar .container {
        width: 100% !important;
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 575px) {
    .main-panel > .content {
        padding: 10px 8px 28px;
    }

    .card .card-header .btn {
        font-size: 13px;
    }

    .modal-loading-body {
        height: 10em;
        padding: 3em 0.5em 0 !important;
    }
}
