body{
    font-family: Arial, sans-serif;
    margin:10px;
}

table.goods{
    width: auto;
    table-layout:fixed;
    border-collapse:collapse;
}

/* Ширина столбцов */
.col-name{ width:30%; }
.col-qty { width:10%; }
.col-add { width:10%; }
.col-del { width:10%; }

th{
    text-align:center;
    padding:4px;
    font-size:14px;
}

td{
    padding:4px;
    vertical-align:middle;    
}

.mahutinr {
    text-align:center
}

/* Поля ввода */
input[type=text],
input[type=number]{
    width:100%;
    box-sizing:border-box;
    padding:5px;
    font-size:14px;    
}

.qty , .mahutiqty , .aktqty{
    text-align: right;
    padding-right: 8px;
}

.buttons {
    margin-top: 30px;      /* расстояние после таблицы */
    padding-top: 10px;
    border-top: 1px solid #ccc;   /* необязательно */
}


/* Ячейки с кнопками */
.btnCell{
    text-align:center;
  /*  padding-left:2px;
    padding-right:2px;*/
}

/* Кнопки */
.btnCell button{
    width:82px;
    height:40px;
    font-size:12px;
    cursor:pointer;
}

.qty-error {
    background-color: #f8d7da !important;
    border-color: #dc3545 !important;
}

#deleteMessage {
    white-space: pre-line;
}


.asice-block {
    margin-top: 20px;
    margin-bottom: 20px;
}

.signatures-block {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    max-width: 900px;
}

.signature-row {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #dee2e6;
}

.signature-row:last-child {
    border-bottom: none;
}

.signature-number {
    width: 35px;
    font-weight: bold;
}

.signature-info {
    flex: 1;
}

.signature-name {
    font-weight: 600;
}

.signature-details {
    font-size: 13px;
    color: #6c757d;
    margin-top: 3px;
}

.signature-status {
    margin-left: 20px;
    color: #198754;
    white-space: nowrap;
}

/*
permission
*/
.permissions-all {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 16px;

    background: #f8f9fa;

    border: 1px solid #dee2e6;
    border-radius: 6px;
}


.permissions-table th {
    vertical-align: middle;
    white-space: nowrap;
}


.permissions-table td {
    vertical-align: middle;
}


.permissions-table th:not(:first-child),
.permissions-table td:not(:first-child) {
    text-align: center;
}


.object-name {
    min-width: 220px;
}


.object-icon {
    display: inline-block;
    width: 28px;
    font-size: 18px;
}


/* переключатель */

.switch {
    position: relative;

    display: inline-block;

    width: 46px;
    height: 24px;

    margin: 0;
}


/* большой переключатель */

.switch-large {
    width: 56px;
    height: 30px;
}


.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}


.slider {
    position: absolute;

    cursor: pointer;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background-color: #adb5bd;

    transition: 0.2s;

    border-radius: 30px;
}


.slider:before {
    position: absolute;

    content: "";

    width: 18px;
    height: 18px;

    left: 3px;
    top: 3px;

    background-color: white;

    transition: 0.2s;

    border-radius: 50%;
}


.switch-large .slider:before {
    width: 24px;
    height: 24px;
}


.switch input:checked + .slider {
    background-color: #198754;
}


.switch input:checked + .slider:before {
    transform: translateX(22px);
}


.switch-large input:checked + .slider:before {
    transform: translateX(26px);
}

.lock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    border-radius: 5px;
    color: white;
}

.locked {
    background-color: #dc3545;
}

.unlocked {
    background-color: #ffc107;
}