@use "sass:map";
@use "../core/_index.scss" as *;
@use "../card/_variables.scss" as *;

/// The spacing index of the OrgChart.
/// @group orgchart
$kendo-orgchart-spacer: k-spacing(6) !default;
/// The vertical padding of the OrgChart.
/// @group orgchart
$kendo-orgchart-padding-y: $kendo-orgchart-spacer !default;
/// The horizontal padding of the OrgChart.
/// @group orgchart
$kendo-orgchart-padding-x: $kendo-orgchart-padding-y !default;
/// The font family of the OrgChart.
/// @group orgchart
$kendo-orgchart-font-family: var( --kendo-font-family, inherit ) !default;
/// The font size of the OrgChart.
/// @group orgchart
$kendo-orgchart-font-size: var( --kendo-font-size, inherit ) !default;
/// The line height of the OrgChart.
/// @group orgchart
$kendo-orgchart-line-height: var( --kendo-line-height, normal ) !default;
/// The background color of the OrgChart.
/// @group orgchart
$kendo-orgchart-bg: var( --kendo-component-bg, initial ) !default;
/// The text color of the OrgChart.
/// @group orgchart
$kendo-orgchart-text: var( --kendo-component-text, initial ) !default;
/// The border color of the OrgChart.
/// @group orgchart
$kendo-orgchart-border: var( --kendo-component-border, initial ) !default;

/// The spacing of the OrgChart node.
/// @group orgchart
$kendo-orgchart-node-spacing: $kendo-orgchart-spacer !default;
/// The spacing of the OrgChart group.
/// @group orgchart
$kendo-orgchart-group-spacing: $kendo-orgchart-spacer !default;
/// The spacing of the OrgChart node container.
/// @group orgchart
$kendo-orgchart-node-container-spacing: $kendo-orgchart-spacer !default;

/// The vertical padding of the OrgChart node group.
/// @group orgchart
$kendo-orgchart-node-group-padding-y: $kendo-orgchart-spacer !default;
/// The horizontal padding of the OrgChart node group.
/// @group orgchart
$kendo-orgchart-node-group-padding-x: $kendo-orgchart-node-group-padding-y !default;
/// The border width of the OrgChart node group.
/// @group orgchart
$kendo-orgchart-node-group-border-width: 1px !default;
/// The border radius of the OrgChart node group.
/// @group orgchart
$kendo-orgchart-node-group-border-radius: k-border-radius(md) !default;
/// The background color of the OrgChart node group.
/// @group orgchart
$kendo-orgchart-node-group-bg: if($kendo-enable-color-system, k-color( surface ), k-get-theme-color-var( neutral-10 )) !default;
/// The text color of the OrgChart node group.
/// @group orgchart
$kendo-orgchart-node-group-text: if($kendo-enable-color-system, k-color( on-app-surface ), k-get-theme-color-var( neutral-190 )) !default;
/// The border color of the OrgChart node group.
/// @group orgchart
$kendo-orgchart-node-group-border: if($kendo-enable-color-system, color-mix(in srgb, k-color( border ) 16%, transparent), k-get-theme-color-var( neutral-30 )) !default;
/// The border color of the focused OrgChart node group.
/// @group orgchart
$kendo-orgchart-node-group-focus-border: $kendo-card-focus-border !default;
/// The shadow of the focused OrgChart node group.
/// @group orgchart
$kendo-orgchart-node-group-focus-shadow: $kendo-card-focus-shadow !default;

/// The vertical margin of the OrgChart node group title.
/// @group orgchart
$kendo-orgchart-node-group-title-margin-y: k-spacing(0) !default;
/// The font size of the OrgChart node group title.
/// @group orgchart
$kendo-orgchart-node-group-title-font-size: var( --kendo-font-size-xl, inherit ) !default;
/// The line height of the OrgChart node group title.
/// @group orgchart
$kendo-orgchart-node-group-title-line-height: var( --kendo-line-height, normal ) !default;

/// The vertical margin of the OrgChart node group subtitle.
/// @group orgchart
$kendo-orgchart-node-group-subtitle-margin-y: calc( $kendo-orgchart-spacer - k-spacing(1) ) !default;
/// The font size of the OrgChart node group subtitle.
/// @group orgchart
$kendo-orgchart-node-group-subtitle-font-size: var( --kendo-font-size, inherit ) !default;
/// The line height of the OrgChart node group subtitle.
/// @group orgchart
$kendo-orgchart-node-group-subtitle-text: var( --kendo-subtle-text, inherit ) !default;

/// The width of the OrgChart Card.
/// @group orgchart
$kendo-orgchart-card-width: 300px !default;
/// The border width of the OrgChart Card.
/// @group orgchart
$kendo-orgchart-card-border-width: $kendo-card-border-width !default;
/// The shadow of the OrgChart Card.
/// @group orgchart
$kendo-orgchart-card-shadow: $kendo-card-shadow !default;
/// The shadow of the focused OrgChart Card.
/// @group orgchart
$kendo-orgchart-card-focus-shadow: $kendo-card-focus-shadow !default;

/// The vertical margin of the OrgChart Card title.
/// @group orgchart
$kendo-orgchart-card-title-margin-y: k-spacing(0) !default;
/// The font size of the OrgChart Card title.
/// @group orgchart
$kendo-orgchart-card-title-font-size: $kendo-card-title-font-size !default;
/// The line height of the OrgChart Card title.
/// @group orgchart
$kendo-orgchart-card-title-line-height: var( --kendo-line-height, normal ) !default;

/// The vertical margin of the OrgChart Card subtitle.
/// @group orgchart
$kendo-orgchart-card-subtitle-margin-y: k-spacing(0) !default;
/// The font size of the OrgChart Card subtitle.
/// @group orgchart
$kendo-orgchart-card-subtitle-font-size: var( --kendo-font-size-sm, inherit ) !default;
/// The line height of the OrgChart Card subtitle.
/// @group orgchart
$kendo-orgchart-card-subtitle-line-height: var( --kendo-line-height, inherit ) !default;

/// The vertical padding of the OrgChart Card body.
/// @group orgchart
$kendo-orgchart-card-body-padding-y: calc( #{$kendo-orgchart-spacer} - k-spacing(2) ) !default;
/// The horizontal padding of the OrgChart Card body.
/// @group orgchart
$kendo-orgchart-card-body-padding-x: $kendo-orgchart-card-body-padding-y !default;
/// The top border width of the OrgChart Card body.
/// @group orgchart
$kendo-orgchart-card-body-border-width: 2px 0 0 !default;
/// The border color of the OrgChart Card body.
/// @group orgchart
$kendo-orgchart-card-body-border-color: transparent !default;

/// The horizontal margin of the OrgChart Card body title wrap.
/// @group orgchart
$kendo-orgchart-card-body-vbox-margin-x: calc( #{$kendo-orgchart-spacer} - k-spacing(2) ) !default;
/// The min height of the OrgChart Card body title wrap.
/// @group orgchart
$kendo-orgchart-card-body-vbox-min-height: $kendo-card-avatar-size !default;

/// The size of the OrgChart connecting line.
/// @group orgchart
$kendo-orgchart-line-size: 1px !default;
/// The fill color of the OrgChart connecting line.
/// @group orgchart
$kendo-orgchart-line-text: if($kendo-enable-color-system, color-mix(in srgb, k-color( border ) 16%, transparent), k-get-theme-color-var( neutral-30 )) !default;
/// The height of the OrgChart connecting line.
/// @group orgchart
$kendo-orgchart-line-v-height: k-spacing(6) !default;
