/* Личный кабинет — в стилистике сайта (Montserrat, #c60e1d, формы как на /business_offer/) */

.content--cabinet-login .form,
.content--cabinet .cabinet-forms .form:not(.cabinet-doc-form) {
	max-width: 560px;
	margin: 0 auto;
}

.content--cabinet .p-subtitle {
	margin-bottom: 32px;
}

/* Навигация по разделам */
.content--cabinet .cabinet-nav {
	margin: 0 0 40px;
}

.cabinet-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 12px;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: center;
}

.cabinet-nav__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 22px;
	border: 1px solid #c60e1d;
	border-radius: 100px;
	background: transparent;
	color: #31393d;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	text-transform: uppercase;
	transition: opacity 0.3s, background 0.3s, color 0.3s;
}

.cabinet-nav__link:hover {
	opacity: 0.85;
	color: #c60e1d;
}

.cabinet-nav__link--active {
	background: #c60e1d;
	border-color: #c60e1d;
	color: #fff;
}

.cabinet-nav__link--active:hover {
	color: #fff;
	opacity: 0.9;
}

.cabinet-nav__link--out {
	border-color: #31393d;
	color: #31393d;
}

.cabinet-nav__link--out:hover {
	color: #c60e1d;
	border-color: #c60e1d;
}

/* Панель контента */
.cabinet-panel {
	max-width: 100%;
	margin: 0 auto;
	padding: 32px 28px 40px;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 16px;
	box-shadow: 0 8px 32px rgba(49, 57, 61, 0.06);
}

.cabinet-panel__title {
	margin: 0 0 28px;
	color: #31393d;
	font-size: 24px;
	font-weight: 600;
	text-align: center;
	text-transform: uppercase;
}

.cabinet-panel__error,
.cabinet-panel__body .cabinet-error {
	margin: 0 0 20px;
	padding: 14px 18px;
	border-radius: 12px;
	background: #ffebee;
	color: #c62828;
	font-size: 16px;
	line-height: 1.45;
	text-align: center;
}

.cabinet-panel__body {
	color: #31393d;
	font-size: 18px;
	line-height: 1.55;
}

.cabinet-panel__body > table,
.cabinet-panel__body table {
	width: 100%;
	margin: 16px 0;
	border-collapse: collapse;
	font-size: 15px;
}

.cabinet-panel__body th,
.cabinet-panel__body td {
	padding: 12px 14px;
	border: 1px solid #dde2e8;
	vertical-align: top;
	text-align: left;
}

.cabinet-panel__body th {
	background: #fafafa;
	font-weight: 600;
	color: #31393d;
}

.cabinet-panel__body tr:nth-child(even) td {
	background: #fcfcfc;
}

.cabinet-panel__body p {
	margin-bottom: 16px;
	font-size: 18px;
}

.cabinet-panel__body b,
.cabinet-panel__body strong {
	font-weight: 600;
	color: #31393d;
}

.cabinet-panel__body a {
	color: #c60e1d;
	text-decoration: underline;
	transition: opacity 0.3s;
}

.cabinet-panel__body a:hover {
	opacity: 0.85;
}

/* Поля и кнопки внутри HTML от Lime API */
.cabinet-panel__body input[type='text'],
.cabinet-panel__body input[type='tel'],
.cabinet-panel__body input[type='password'],
.cabinet-panel__body input[type='search'],
.cabinet-panel__body input[type='number'],
.cabinet-panel__body select {
	width: 100%;
	max-width: 320px;
	height: 52px;
	padding: 0 16px;
	color: #000;
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	background-color: #fff;
	border: 1px solid #31393d;
	border-radius: 12px;
	transition: border-color 0.3s;
}

.cabinet-panel__body input[type='date'] {
	height: 52px;
	padding: 0 16px;
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	border: 1px solid #31393d;
	border-radius: 12px;
}

.cabinet-panel__body .btn,
.cabinet-panel__body button:not(.btn-red) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 24px;
	margin-top: 8px;
	border: none;
	border-radius: 100px;
	background: #c60e1d;
	color: #fff;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	cursor: pointer;
	transition: opacity 0.3s;
}

.cabinet-panel__body .btn:hover,
.cabinet-panel__body button:not(.btn-red):hover {
	opacity: 0.88;
}

.cabinet-panel__body .v1 {
	display: block;
	margin-bottom: 8px;
	font-size: 18px;
	font-weight: 600;
}

.cabinet-panel__body .v2 {
	display: block;
	margin: 8px 0;
	font-size: 15px;
	color: #5c6370;
}

#taskinfo {
	margin: 16px 0;
	padding: 12px 16px;
	border-radius: 12px;
	background: #e8f5e9;
	color: #2e7d32;
	font-size: 15px;
	text-align: center;
}

/* Lime Taxi — вкладка «Сотрудники» (#phonescontent) */
#phonescontent,
.cabinet-phones {
	padding: 4px 2px 8px;
	font-size: 16px;
	line-height: 1.55;
}

.cabinet-phones__responsible {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin: 0 0 8px;
	padding: 16px 18px;
	border-radius: 12px;
	background: #f8f9fb;
}

.cabinet-phones__responsible-label {
	flex: 1 1 260px;
	color: #31393d;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.45;
}

.cabinet-phones > hr,
#phonescontent > hr {
	margin: 24px 0;
	border: 0;
	border-top: 1px solid #eee;
}

.cabinet-phones h3,
#phonescontent h3 {
	margin: 0 0 12px;
	color: #31393d;
	font-size: 20px;
	font-weight: 600;
	text-align: center;
	text-transform: uppercase;
}

.cabinet-phones__hint {
	display: block;
	margin: 0 0 20px;
	padding: 14px 16px;
	border-left: 4px solid #43a047;
	border-radius: 0 12px 12px 0;
	background: #f1f8e9;
	color: #33691e !important;
	font-size: 14px;
	line-height: 1.5;
}

.cabinet-phones__input-wrap {
	position: relative;
	display: inline-block;
	max-width: 100%;
	vertical-align: middle;
}

.cabinet-phones__input-wrap .cabinet-phones__main-input,
.cabinet-phones__input-wrap #main_phone,
.cabinet-phones__input-wrap #add_fio,
.cabinet-phones__input-wrap #add_phone {
	display: block;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 10px 38px 10px 12px;
	border: 1px solid #d5dbe3;
	border-radius: 8px;
	background: #fff;
	color: #31393d;
	font-size: 15px;
	line-height: 1.4;
}

.cabinet-phones__input-wrap .cabinet-phones__main-input,
.cabinet-phones__input-wrap #main_phone {
	min-width: 180px;
	max-width: 220px;
}

.cabinet-phones__input-icon {
	position: absolute;
	top: 50%;
	right: 12px;
	color: #9aa3af;
	font-size: 14px;
	line-height: 1;
	pointer-events: none;
	transform: translateY(-50%);
}

.cabinet-phones__main-input:disabled,
.cabinet-phones__input-wrap #main_phone:disabled {
	background: #f5f5f5;
	color: #5c6370;
	opacity: 1;
}

.cabinet-phones__edit-link,
#phonescontent #text_message {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 9px 16px;
	border: 1px solid #c60e1d;
	border-radius: 100px;
	background: #fff;
	color: #c60e1d !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cabinet-phones__edit-link::before,
#phonescontent #text_message::before {
	content: '\f044';
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	font-size: 13px;
	line-height: 1;
}

.cabinet-phones__edit-link:hover,
#phonescontent #text_message:hover {
	background: #c60e1d;
	border-color: #c60e1d;
	color: #fff !important;
}

.cabinet-phones__add-block {
	margin: 24px 0 20px;
	padding: 18px 18px 16px;
	border: 1px solid #e3e7ed;
	border-radius: 12px;
	background: #fafbfc;
}

.cabinet-phones__add-title {
	margin: 0 0 14px;
	color: #31393d;
	font-size: 17px;
	font-weight: 600;
}

.cabinet-phones__add-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px 16px;
}

.cabinet-phones__field {
	flex: 1 1 200px;
	min-width: 0;
	margin: 0;
}

.cabinet-phones__field-label {
	display: block;
	margin: 0 0 6px;
	color: #5c6370;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.cabinet-phones__field .cabinet-phones__input-wrap {
	display: block;
	width: 100%;
}

.cabinet-phones__field #add_fio,
.cabinet-phones__field #add_phone {
	width: 100%;
	max-width: none;
}

.cabinet-phones .add_phone_btn.btn.btn-red,
.cabinet-phones .cabinet-phone-add {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	margin: 0;
	padding: 10px 18px;
	vertical-align: bottom;
	white-space: nowrap;
}

.cabinet-phones .cabinet-phone-add i {
	font-size: 14px;
	line-height: 1;
}

.cabinet-phones b.v1,
.cabinet-phones span.v1,
.cabinet-phones span.v2 {
	display: none;
}

.cabinet-phones__table {
	width: 100%;
	margin: 12px 0 0;
	border: 1px solid #dde2e8 !important;
	border-collapse: collapse;
	border-radius: 12px;
	overflow: hidden;
	font-size: 15px;
	text-align: center !important;
}

.cabinet-phones__table th,
.cabinet-phones__table td {
	padding: 14px 18px !important;
	border: 1px solid #e3e7ed !important;
	vertical-align: middle !important;
	text-align: center !important;
}

.cabinet-phones__table th {
	background: #eceff3;
	font-weight: 600;
	color: #31393d;
}

.cabinet-phones__table tbody tr:nth-child(odd) td {
	background: #fff;
}

.cabinet-phones__table tbody tr:nth-child(even) td {
	background: #f3f4f6;
}

.cabinet-phones__table tbody tr:hover td {
	background: #eef2f7;
}

.cabinet-phones__table td:first-child {
	text-align: left !important;
	font-weight: 500;
}

.cabinet-phones__table td:last-child {
	width: 80px;
	padding-left: 10px !important;
	padding-right: 10px !important;
}

.cabinet-phone-delete {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid #ef9a9a;
	border-radius: 8px;
	background: #fff5f5;
	color: #c62828;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.cabinet-phone-delete:hover {
	background: #ffebee;
	border-color: #e57373;
	color: #b71c1c;
}

.cabinet-phones img.add_phone_btn,
.cabinet-phones img.delete_phone {
	box-sizing: border-box;
	width: 38px;
	height: 38px;
	padding: 10px;
	border: 1px solid #dde2e8;
	border-radius: 8px;
	background: #f8f9fb center / 16px 16px no-repeat;
	cursor: pointer;
	object-fit: contain;
	vertical-align: middle;
}

.cabinet-phones img.delete_phone {
	border-color: #ef9a9a;
	background-color: #fff5f5;
}

.cabinet-phones img.add_phone_btn {
	width: auto;
	min-width: 38px;
	padding: 10px 14px;
	background-color: #c60e1d;
	border-color: #c60e1d;
}

.cabinet-panel__title[hidden] {
	display: none;
}

.cabinet-panel__body[hidden] {
	display: none;
}

.cabinet-panel__loading {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	min-height: 120px;
	margin: 8px 0 16px;
	color: #5c6370;
	font-size: 16px;
	text-align: left;
}

.cabinet-panel__spinner {
	display: inline-block;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border: 3px solid #e8e8e8;
	border-top-color: #c60e1d;
	border-radius: 50%;
	animation: cabinet-spin 0.8s linear infinite;
}

.cabinet-panel__loading-text {
	line-height: 1.4;
}

@keyframes cabinet-spin {
	to {
		transform: rotate(360deg);
	}
}

.cabinet-panel--loading .cabinet-panel__body {
	opacity: 0.55;
	pointer-events: none;
}

#cabinet-history-result .cabinet-panel__loading {
	min-height: 80px;
	margin: 0 0 16px;
}

/* Формы счёта / акта / истории */
.cabinet-docs-request {
	margin-top: 36px;
	padding-top: 32px;
	border-top: 1px solid #e8e8e8;
}

.cabinet-forms {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 28px;
	margin: 0;
	max-width: none;
}

.cabinet-doc-form {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.cabinet-doc-form__title,
.cabinet-forms .form__subtitle {
	margin: 0 0 12px;
	color: #31393d;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.45;
	text-align: left;
}

.cabinet-doc-form__row {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	width: 100%;
}

.cabinet-doc-form__input-wrap {
	position: relative;
	display: block;
	flex: 0 0 auto;
	width: 240px;
	max-width: 100%;
}

.cabinet-doc-form--invoice .cabinet-doc-form__row {
	flex-wrap: nowrap;
}

.cabinet-doc-form--invoice .cabinet-doc-form__input-wrap {
	width: 260px;
}

.cabinet-doc-form--act .cabinet-doc-form__input-wrap,
.cabinet-doc-form--history .cabinet-doc-form__input-wrap {
	width: 200px;
}

.cabinet-doc-form--act .cabinet-doc-form__row,
.cabinet-doc-form--history .cabinet-doc-form__row {
	flex-wrap: nowrap;
}

/* Legacy-разметка акта сверки (без cabinet-doc-form__row) */
.cabinet-form--act:not(.cabinet-doc-form) .form__subtitle {
	margin: 0 0 12px;
	color: #31393d;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.45;
	text-align: left;
}

.cabinet-form--act:not(.cabinet-doc-form) .cabinet-form__dates {
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 12px;
	margin: 0;
	vertical-align: middle;
}

.cabinet-form--act:not(.cabinet-doc-form) .cabinet-form__dates label {
	display: block;
	flex: 0 0 auto;
	width: 200px;
	margin: 0;
}

.cabinet-form--act:not(.cabinet-doc-form) .cabinet-form__dates .title {
	display: none;
}

.cabinet-form--act:not(.cabinet-doc-form) .flex-bot {
	display: inline-flex;
	align-items: center;
	margin: 0 0 0 4px;
	padding-top: 0;
	vertical-align: middle;
}

.content--cabinet .cabinet-form--act:not(.cabinet-doc-form) input[type='date'],
.cabinet-form--act:not(.cabinet-doc-form) input[type='date'] {
	box-sizing: border-box;
	width: 100% !important;
	height: 48px !important;
	margin: 0 !important;
	padding: 0 14px !important;
	border: 1px solid #d5dbe3 !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: #31393d !important;
	font-family: 'Montserrat', sans-serif;
	font-size: 15px;
	line-height: 1.4;
	color-scheme: light;
}

.cabinet-form--act:not(.cabinet-doc-form) .form__btn {
	flex: 0 0 auto;
	width: auto;
	min-width: 0;
	min-height: 48px;
	padding: 12px 22px;
	font-size: 13px;
	white-space: nowrap;
}

.content--cabinet .cabinet-doc-form__input-wrap input[type='text'],
.content--cabinet .cabinet-doc-form__input-wrap input[type='date'],
.cabinet-doc-form__input-wrap input[type='text'],
.cabinet-doc-form__input-wrap input[type='date'] {
	box-sizing: border-box;
	width: 100% !important;
	height: 48px !important;
	margin: 0 !important;
	padding: 0 42px 0 14px !important;
	border: 1px solid #d5dbe3 !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: #31393d !important;
	font-family: 'Montserrat', sans-serif;
	font-size: 15px;
	line-height: 1.4;
	text-align: left;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.cabinet-doc-form__input-wrap input[type='date'] {
	padding-right: 14px;
	color-scheme: light;
}

.cabinet-doc-form__input-wrap input:focus {
	border-color: #c60e1d;
	box-shadow: 0 0 0 3px rgba(198, 14, 29, 0.12);
	outline: none;
}

.cabinet-doc-form__input-icon {
	position: absolute;
	top: 50%;
	right: 14px;
	z-index: 1;
	color: #9aa3af;
	font-size: 15px;
	font-style: normal;
	font-weight: 600;
	line-height: 1;
	pointer-events: none;
	transform: translateY(-50%);
}

.cabinet-doc-form__row .form__btn {
	flex: 0 0 auto;
	width: auto;
	min-width: 0;
	min-height: 48px;
	padding: 12px 22px;
	font-size: 13px;
	white-space: nowrap;
}

.cabinet-form__status {
	width: 100%;
	margin-top: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.45;
	text-align: left;
}

.cabinet-form__status:empty {
	display: none;
	margin: 0;
	padding: 0;
}

.cabinet-form__status--ok {
	background: #f1f8e9;
	color: #2e7d32;
}

.cabinet-form__status--error {
	background: #ffebee;
	color: #c62828;
}

/* Документы */
.cabinet-docs-list {
	margin-top: 36px;
	padding-top: 28px;
	border-top: 1px solid #eee;
}

.cabinet-docs-list h3 {
	margin: 0 0 16px;
	color: #31393d;
	font-size: 22px;
	font-weight: 600;
	text-align: center;
	text-transform: uppercase;
}

.cabinet-docs-list ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cabinet-docs-list li {
	margin: 10px 0;
	text-align: center;
}

.cabinet-docs-list a {
	color: #c60e1d;
	font-size: 17px;
	text-decoration: underline;
}

.cabinet-docs-list a small {
	font-size: 14px;
	opacity: 0.85;
}

.cabinet-docs--hidden {
	display: none;
}

.cabinet-docs__more {
	display: inline-block;
	margin-top: 12px;
	color: #c60e1d;
	font-size: 15px;
	font-weight: 600;
	text-decoration: underline;
}

.cabinet-notice {
	margin-top: 28px;
	padding: 14px 18px;
	border-left: 4px solid #c60e1d;
	border-radius: 0 12px 12px 0;
	background: #fff5f5;
	color: #31393d;
	font-size: 15px;
	line-height: 1.5;
}

.cabinet-notice i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	margin-right: 8px;
	border-radius: 50%;
	background: #c60e1d;
	color: #fff;
	font-style: normal;
	font-size: 13px;
	font-weight: 700;
	vertical-align: middle;
}

.cabinet-history-info {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 24px;
	padding: 14px 16px;
	border-left: 4px solid #c60e1d;
	border-radius: 0 12px 12px 0;
	background: #fff5f5;
	color: #31393d;
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
}

.cabinet-history-info i {
	flex-shrink: 0;
	margin-top: 2px;
	color: #c60e1d;
	font-size: 16px;
}

.cabinet-form--history {
	margin: 0 0 8px;
}

#cabinet-history-result {
	margin-top: 28px;
}

#cabinet-history-result:empty {
	display: none;
	margin-top: 0;
}

.cabinet-history {
	margin: 0;
}

.cabinet-history__company {
	margin: 0 0 16px;
	color: #31393d;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
}

.cabinet-history__scroll {
	overflow: visible;
	border: 1px solid #dde2e8;
	border-radius: 12px;
	background: #fff;
}

.cabinet-history-table {
	width: 100%;
	min-width: 0;
	margin: 0 !important;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 12px;
	line-height: 1.35;
}

.cabinet-history-table th,
.cabinet-history-table td {
	padding: 8px 6px !important;
	border: 1px solid #e3e7ed !important;
	vertical-align: top;
	text-align: left;
	color: #31393d;
	word-wrap: break-word;
	overflow-wrap: anywhere;
	hyphens: auto;
}

.cabinet-history-table thead th {
	position: static;
	background: #eceff3 !important;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	white-space: normal;
	line-height: 1.25;
}

.cabinet-history-table tbody tr:nth-child(odd) td {
	background: #fff;
}

.cabinet-history-table tbody tr:nth-child(even) td {
	background: #f7f8fa;
}

.cabinet-history-table tbody tr:hover td {
	background: #eef2f7;
}

/* Дата | Время | Телефон | Фамилия | Маршрут | Услуга | Пробег | Ожидание | № авто | Сумма */
.cabinet-history-table th:nth-child(1),
.cabinet-history-table td:nth-child(1) { width: 7.5%; }
.cabinet-history-table th:nth-child(2),
.cabinet-history-table td:nth-child(2) { width: 6.5%; }
.cabinet-history-table th:nth-child(3),
.cabinet-history-table td:nth-child(3) { width: 7%; }
.cabinet-history-table th:nth-child(4),
.cabinet-history-table td:nth-child(4) { width: 10%; }
.cabinet-history-table th:nth-child(5),
.cabinet-history-table td:nth-child(5) { width: 28%; }
.cabinet-history-table th:nth-child(6),
.cabinet-history-table td:nth-child(6) { width: 8%; }
.cabinet-history-table th:nth-child(7),
.cabinet-history-table td:nth-child(7) { width: 7%; }
.cabinet-history-table th:nth-child(8),
.cabinet-history-table td:nth-child(8) { width: 8%; }
.cabinet-history-table th:nth-child(9),
.cabinet-history-table td:nth-child(9) { width: 7%; }
.cabinet-history-table th:nth-child(10),
.cabinet-history-table td:nth-child(10) { width: 8%; }

.cabinet-history-table__num {
	text-align: right !important;
	white-space: normal;
	font-variant-numeric: tabular-nums;
}

.cabinet-history-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
	margin-top: 16px;
	padding: 16px 18px;
	border-radius: 12px;
	background: #f8f9fb;
	border: 1px solid #e3e7ed;
}

.cabinet-history-summary__label {
	color: #31393d;
	font-size: 15px;
	font-weight: 600;
}

.cabinet-history-summary__value {
	color: #c60e1d;
	font-size: 20px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.cabinet-history-empty {
	margin: 0;
	padding: 18px 16px;
	border-radius: 12px;
	background: #f8f9fb;
	color: #5c6370;
	font-size: 15px;
	text-align: center;
}

.cabinet-history-raw {
	margin: 0;
	padding: 16px;
	overflow-x: auto;
	border-radius: 12px;
	background: #f8f9fb;
	color: #31393d;
	font-size: 13px;
	line-height: 1.5;
	white-space: pre-wrap;
}

@media (max-width: 768px) {
	.cabinet-panel {
		padding: 24px 16px 28px;
	}

	.cabinet-nav__list {
		flex-direction: column;
		align-items: stretch;
	}

	.cabinet-nav__link {
		width: 100%;
	}

	.cabinet-panel__body > table,
	.cabinet-panel__body table {
		font-size: 13px;
	}

	.cabinet-panel__body th,
	.cabinet-panel__body td {
		padding: 8px 10px;
	}

	.cabinet-phones__responsible {
		flex-direction: column;
		align-items: stretch;
	}

	.cabinet-phones__responsible-label {
		flex-basis: auto;
	}

	.cabinet-phones__input-wrap,
	.cabinet-phones__input-wrap .cabinet-phones__main-input,
	.cabinet-phones__input-wrap #main_phone {
		display: block;
		width: 100%;
		max-width: none;
	}

	.cabinet-phones__edit-link,
	#phonescontent #text_message {
		justify-content: center;
		width: 100%;
	}

	.cabinet-phones__add-row {
		flex-direction: column;
		align-items: stretch;
	}

	.cabinet-phones__field {
		flex-basis: auto;
		width: 100%;
	}

	.cabinet-phones .cabinet-phone-add {
		width: 100%;
	}

	.cabinet-phones__table {
		font-size: 13px;
	}

	.cabinet-phones__table th,
	.cabinet-phones__table td {
		padding: 10px 12px !important;
	}

	.cabinet-forms {
		gap: 24px;
	}

	.cabinet-doc-form__row,
	.cabinet-doc-form--act .cabinet-doc-form__row,
	.cabinet-doc-form--history .cabinet-doc-form__row {
		flex-wrap: wrap;
	}

	.cabinet-form--act:not(.cabinet-doc-form) .cabinet-form__dates,
	.cabinet-form--act:not(.cabinet-doc-form) .flex-bot {
		display: flex;
		width: 100%;
		margin: 0;
	}

	.cabinet-form--act:not(.cabinet-doc-form) .flex-bot {
		margin-top: 12px;
	}

	.cabinet-form--act:not(.cabinet-doc-form) .cabinet-form__dates label {
		flex: 1 1 auto;
		width: auto;
	}

	.cabinet-doc-form__input-wrap,
	.cabinet-doc-form--invoice .cabinet-doc-form__input-wrap,
	.cabinet-doc-form--act .cabinet-doc-form__input-wrap,
	.cabinet-doc-form--history .cabinet-doc-form__input-wrap {
		width: 100%;
		max-width: none;
	}

	.cabinet-doc-form__row .form__btn {
		width: 100%;
	}
}
